https://github.com/codebox/timeadd
Command-line utility for performing time arithmetic
https://github.com/codebox/timeadd
Last synced: 9 months ago
JSON representation
Command-line utility for performing time arithmetic
- Host: GitHub
- URL: https://github.com/codebox/timeadd
- Owner: codebox
- License: mit
- Created: 2012-09-29T08:51:39.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2015-11-14T10:26:00.000Z (over 10 years ago)
- Last Synced: 2023-03-11T21:48:15.465Z (almost 3 years ago)
- Language: C
- Size: 102 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
timeadd
=======
A simple command-line utility for performing time arithmetic.
The utility expects two arguments:
* a string containing a time, formatted as follows: HH:MM:SS
* an integer number of seconds to add to the specified time (the value can be either positive or negative)
The utility prints the resulting time to stdout. Examples:
timeadd 00:23:49 15
> 00:24:04
timeadd 00:10:00 -605
> -00:00:05