Moscarde / StudyTimeTracker

Python script to track your daily study sessions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Study Time Tracker πŸ“šβ°

This Python script allows you to track your study time on a daily basis. Creates a text file to store the total time spent studying. You can start and stop the timer to record your study sessions, and the script will calculate and update your daily study time.

Features 🌟

  • Automatically creates a text file for the current day if it doesn't exist.
  • Records study time with start and stop functionality.
  • Tracks and displays total study time for the day.
  • Appends the timestamp and study duration to the log.

Prerequisites πŸ“‹

  • Python 3.x
  • Study sessions

Usage πŸš€

  1. Clone this repository or download the script.
  2. Open a terminal and navigate to the project directory.
  3. Run the script using the following command:
python study_time_tracker.py
  1. The script will start a timer. Press Enter to stop the timer when you finish studying.
  2. You can start a new timer by pressing [Y] or any other key to stop and exit the program.
  3. The recorded study time and timestamp will be saved in a text file named YYYY-MM-DD.txt.

Example πŸ“Š

Here's an example of what the recorded data in the text file may look like:

TOTAL_TIME: 5:45:22
LOG:
Date 01/01/2023, 14:30:15 - Time Spent 2:30:15
Date 01/01/2023, 19:45:22 - Time Spent 3:15:07

In this example, two study sessions were recorded on January 01, 2023, with their respective durations.

Note πŸ“

Make sure to stop the timer when you finish your study session to record the time accurately. You can run the script multiple times in a day, and it will update the same text file for that specific day.

Feel free to contribute to this project or customize it according to your needs. Happy studying! Focus on the code, not on the time! πŸ˜„πŸ‘¨β€πŸ’»

About

Python script to track your daily study sessions

License:MIT License


Languages

Language:Python 100.0%