Skip to content

Alvi24-hub/Digital-Clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Digital code


A simple Python console project that offers three timing utilities:

  1. Digital Clock
  2. Timer
  3. Pomodoro Through this project, I gained practical experience with Python’s time module, learning how to retrieve and format the current time, implement delays, and build time-based functionalities.

Features

1. Digital Clock

  • Choose between 12-hour or 24-hour display formats.
  • Real-time clock updates every second in the console.

2. Countdown Timer

  • Enter a custom number of seconds to count down.
  • Optional label for the timer (e.g., "Study", "Break").
  • Displays time in MM:SS format, updating each second.

3. Pomodoro Timer

  • Default settings: 25-minute focus, 5-minute break, 4 rounds, 30-minute long break.
  • Optionally customize focus period, break period, number of rounds, and long break.
  • Visual cues in the console for focus and break phases, labeled by round.

How to run

  • Make sure Python is installed in your system.
  • Clone or download this project folder.
  • Use an external terminal if the code is being executed in VS Code.
  • Run the code and you will see a menu.
  • Enter 1 to launch the digital clock. Choose 1 or 2 for 12- or 24-hour format.
  • Enter 2 to start the countdown timer. Provide the number of seconds and an optional label.
  • Enter 3 to start the Pomodoro timer. Follow on-screen prompts to customize or start with defaults.

Example

alt text alt text alt text alt text


Requirements

  • Python 3.13.3+
  • No external libraries are needed (uses Python's built-in math module).

Additional Features I Plan On Adding

  • Sound alerts
  • A way to exit the clock, timer or pomodoro
  • Pause, resume and stop options for the timer and pomodoro
  • Unlimited rounds for the pomodoro and other options for customizing
  • An option to skip a period in the pomodoro loop

About

A Python-based terminal application featuring a digital clock, customizable countdown timer, and Pomodoro timer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages