https://github.com/sabrehagen/timeago
timeago shell script
https://github.com/sabrehagen/timeago
posix shell timeago
Last synced: 3 months ago
JSON representation
timeago shell script
- Host: GitHub
- URL: https://github.com/sabrehagen/timeago
- Owner: sabrehagen
- Created: 2019-11-14T10:19:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-14T10:48:25.000Z (over 5 years ago)
- Last Synced: 2025-03-09T19:36:23.883Z (3 months ago)
- Topics: posix, shell, timeago
- Language: Shell
- Size: 0 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# timeago
Print a unix timestamp as a period of time ago.
## Usage
Pipe a unix timestamp to `timeago`.
```sh
▶ date +%s | ./timeago
0 seconds ago▶ echo 1573726417 | ./timeago
21 seconds ago▶ echo 1573723417 | ./timeago
53 minutes ago▶ echo 1573721417 | ./timeago
1 hour ago▶ echo 1573321417 | ./timeago
5 days ago
```