A command-line tool for calculating the duration between two times.
To install the Time Duration Calculator CLI Tool, follow these steps:
-
Clone the Repository:
First, clone the repository to your local machine using the following command:git clone https://github.com/your-username/time-duration-calculator.git
-
Navigate into the Project Directory:
cd time-duration-calculator -
Install the Dependencies:
pip install . -
Run the Tool:
timediff 8:30 AM 10:22 PM
- Default to PM: Assumes PM is specified for both periods unless otherwise stated.
- Case-Insensitive AM/PM Input: Will accept both uppercase and lowercase for AM/PM (e.g.,
8:30 amor8:30 AM). - Start/End Time Capture: Will provide an option to start a timer and later capture the end time, calculating the duration between them.
python time_duration.py 8:30 AM 10:22 PM