Skip to content

This Python script displays the current time in either 12hr or 24hr format with color customization. The user can choose between any format, and the script updates the time every second. The program runs in a loop, allowing continuous time display until the user decides to exit.

License

Notifications You must be signed in to change notification settings

nishuR31/Digital_Clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digital Clock

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.

GitHub Repo Size Sponsor Me Open Source Love Follow Me Custom Badge Issue Count Issue Count

Features

  • 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.

Getting Started

Readme Card

Prerequisites

  • Python 3.x
  • colorama library

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/Digital_Clock.git
  2. Install the required Python package:
    pip install colorama
    or
    pip install -r requirements.txt

Running the Program

  1. Navigate to the project directory:
    cd Digital_Clock
  2. Run the program:
    python digital_clock.py
  3. Follow the on-screen prompt to choose your preferred time format.

Contributing

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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For more information or to provide feedback, you can reach out to me on GitHub or mail me on nishanrajak7679@gmail.com .

About

This Python script displays the current time in either 12hr or 24hr format with color customization. The user can choose between any format, and the script updates the time every second. The program runs in a loop, allowing continuous time display until the user decides to exit.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages