This Python-based digital clock displays the current time in either 12-hour or 24-hour format, with the time displayed in a visually distinct style using the colorama
library for color customization.
- 12-Hour Format: Displays time in the traditional 12-hour format with AM/PM indicators.
- 24-Hour Format: Displays time in the 24-hour format, also known as military time.
- Color Customization: The
colorama
library is used to enhance the visual representation of time by changing colors based on AM/PM. - Interactive Input: Allows the user to choose between 12-hour and 24-hour formats interactively.
- Python 3.x
colorama
library
- Clone the repository:
git clone https://github.com/your-username/Digital_Clock.git
- Install the required Python package:
or
pip install colorama
pip install -r requirements.txt
- Navigate to the project directory:
cd Digital_Clock
- Run the program:
python digital_clock.py
- Follow the on-screen prompt to choose your preferred time format.
Contributions are welcome! If you have any improvements or additional features, feel free to open a pull request or fork the project and create a new branch for your feature.
This project is licensed under the MIT License - see the LICENSE file for details.
For more information or to provide feedback, you can reach out to me on GitHub or mail me on nishanrajak7679@gmail.com .