Translate

Archives

Image of Linux Kernel Development (3rd Edition)
Image of XSLT 2.0 and XPath 2.0 Programmer's Reference (Programmer to Programmer)
Image of Beginning Google Maps API 3
Image of RHCE Red Hat Certified Engineer Linux Study Guide (Exam RH302) (Certification Press)

GNU Coreutils Epoch Date Support

GNU coreutils 5.3.0 added the very useful @ operator to the date command to enable users to easily convert seconds since the Unix Epoch into date strings.

$ date
Mon Mar 17 21:31:15 EDT 2014
$ date +%s
1395106277
$ date -d'@1395106277'
Mon Mar 17 21:31:17 EDT 2014
$ date --date='@1395106277'
Mon Mar 17 21:31:17 EDT 2014
$

Comments are closed.