Unix Timestamp

by Wolfram Saringer  (2014-07-14)
last change: 2014-10-06

Need the Unix timestamp for an arbitrary date? Try this:

date -j -f "%Y-%M-%d" "2014-07-02" +"%s"

Adapt the -f format string as needed. In this case it parses yyyy-MM-dd.
+"%s" gives output in seconds since the epoch

Convert a unix timestamp back to a date:
date -jf "%s" 1394146800

all articles represent the sole opinion of their respective author. all content comes without any warranty for correctnes, despite due diligence.