ChronoDiff is a command-line tool written in Go that calculates the difference between two timestamps. It is designed to be simple and efficient, providing a quick way to determine the time elapsed between two given times. Without having to visit any websites.
- Calculate the difference between two timestamps
- Output the result in a human-readable format
- Output the result in normal (8h30m) as well as industrial time (8.5h)
To use ChronoDiff, simply provide two timestamps as input. The tool will output the difference between them.
chronodiff --start "06:25" --end "15:13"Output:
+---------------+---------+------------+
| # | NORMAL | INDUSTRIAL |
+---------------+---------+------------+
| Without break | 8h48m0s | 8.8 |
| With break | 8h3m0s | 8.05 |
+---------------+---------+------------+
By default, Chronodiff defaults to a break time of 45 minutes. This can be changed by providing a different amount of minutes.
chronodiff --start "6:25" --end "15:13" --break 60Output:
+---------------+---------+------------+
| # | NORMAL | INDUSTRIAL |
+---------------+---------+------------+
| Without break | 8h48m0s | 8.8 |
| With break | 7h48m0s | 7.8 |
+---------------+---------+------------+
-
Download the latest binary from the Releases tab
-
Place the binary wherever you want
- Clone the repository:
git clone https://github.com/InfiiiinitY/ChronoDiff.git
- Navigate to the project directory:
cd chronodiff - Build the project:
go build chronodiff.go
- Place the binary wherever you want
If you want Chronodiff to be callable from the command line as shown under Usage, place the binary somewhere inside your Path.
If you don't know what I'm talking about, read about the Path environment variable here. This also shows you how to add a folder to the Path variable.