Linux epoch time conversion

tuxclock

In Linux or database, many time is display in epoch format, and human might not understand what is the exact time for it. However, you may easily convert them through Linux command.

To convert from digital to epoch format,

# date +%s

To convert from epoch to digital format,

# date -d@1357214400

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>