Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
denysonique
on July 13, 2017
|
parent
|
context
|
favorite
| on:
Countdown to timestamp 1,500M
On UNIX likes systems*. Pro-tip: `watch -n 1 date +%s` will give you a live view of the timestamp
butisaidsudo
on July 13, 2017
|
next
[–]
Oohhh, didn't know about watch, thanks! If you want it to count down instead:
$ watch -n1 'echo $((1500000000 - $(date +%s)))'
sbierwagen
on July 13, 2017
|
prev
[–]
If you have an X server installed, you can also get a windowed unix time clock:
xclock -utime -update 1
schoen
on July 14, 2017
|
parent
[–]
I tried this and noticed that you forgot -digital, which is apparently necessarily for -utime to have any effect.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: