Translate

Archives

Bash Printf %T Option

This post discusses and demonstrates how to use the printf %T date functionality available in the Bash shell since version 4.2.

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 $