https://github.com/sabrehagen/timeago
timeago shell script
https://github.com/sabrehagen/timeago
posix shell timeago
Last synced: 19 days ago
JSON representation
timeago shell script
- Host: GitHub
- URL: https://github.com/sabrehagen/timeago
- Owner: sabrehagen
- Created: 2019-11-14T10:19:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-14T10:48:25.000Z (over 6 years ago)
- Last Synced: 2025-12-19T15:56:48.659Z (6 months ago)
- Topics: posix, shell, timeago
- Language: Shell
- Size: 0 Bytes
- Stars: 1
- Watchers: 1
- 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
```