https://github.com/cbalci/when
cmdline utility for printing human readable date time values from a unix timestamp
https://github.com/cbalci/when
golang timestamp unix
Last synced: 5 months ago
JSON representation
cmdline utility for printing human readable date time values from a unix timestamp
- Host: GitHub
- URL: https://github.com/cbalci/when
- Owner: cbalci
- License: mit
- Created: 2019-09-22T01:11:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T06:43:05.000Z (over 4 years ago)
- Last Synced: 2024-06-20T12:43:06.383Z (about 2 years ago)
- Topics: golang, timestamp, unix
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
Summary:
when is a cmdline utility which accepts a unix timestamps and printlns RFC3339(UTC) datetime sting and a human readable relative difference from now.
Installation:
go get github.com/cbalci/when
Usage:
$> when 1569054942
2019-09-21T01:35:42-07:00 (15 hours, 3 minutes, 56 seconds ago)
$> when 15
1970-01-01T00:00:15Z (49 years, 8 months, 21 days, 51 minutes, 33 seconds ago)
$> when 2000000000
2033-05-18T03:33:20Z (13 years, 8 months, 26 days, 2 hours, 40 minutes, 1 second in the future)