I need something simple like date
, but in seconds since 1970 instead of the current date, hours, minutes, and seconds.
date
doesn’t seem to offer that option. Is there an easy way?
I need something simple like date
, but in seconds since 1970 instead of the current date, hours, minutes, and seconds.
date
doesn’t seem to offer that option. Is there an easy way?
This should work:
date +%s