Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

date +%s

To see current time



I used to find this syntax opaque/unfriendly until I simply looked into it. Here's a helpful cheat sheet for what follows the "+":

https://gist.github.com/nikreiman/1408399


Or just use man date


Here's another one:

$ man strftime




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: