Since what?
14:30:29 risto@GALACTICA /home/risto>
↪ since 13:00
1 hours and 30 minutes
``` ↪ since -h since v0.11.0
Fetch time difference between
If no parameters are given, will return time since UNIX epoch.
Missing
All values are generally rounded down.
USAGE:
since [ARGS]
since
FLAGS: -h, --help Prints help information -V, --version Prints version information
ARGS:
SUBCOMMANDS: years Print the output in years (approx) months Print the output in months (approx) weeks Print the output in weeks (approx) days Print the output in days hours Print the output in hours minutes Print the output in minutes seconds Print the output in seconds ```
All formats are hard-coded and chosen with the loose criteria of "what makes sense", the goal is to be intuitive, not exhaustive (yet).
HH:MM
HH:MM:SS
YYYY-MM-DD
YYYY/MM/DD
YYYY.MM.DD
DD-MM-YYYY
DD/MM/YYYY
DD.MM.YYYY
DD MONTH YYYY
(eg. Dec or December)YYYY MONTH DD
[date] [time]
[date]T[time]
when has 1 $time_unit passed
.```sh ↪ date Mon 8 Jun 10:12:14 EEST 2020
↪ since 7:00 3 hours and 12 minutes
↪ since 24.12.2019 6 months
↪ since 24-12-2012T16:00:00 8 years
↪ since hours 7:00 3
↪ since minutes 7:00 192
↪ since days 7:00 0
↪ since days 24.12.2019 166
↪ since months 24.12.2019 6
↪ since years 24.12.2002 18
↪ since minutes 14:00 23:45 585
↪ since hours "24 December 2019 18:15:30" 2020-6-20 4286
↪ since 1591600334
↪ since minutes 26526672
↪ since years 50 ```
git clone https://github.com/ryyst/since.git
cd since
cargo build --release
Now you can find the binary in ./target/release/since