Monday, March 21, 2011

Info:Time In Linux

The date command in Linux can print the number of seconds since epoch with:    
date +%s 
It can also print the date in human readable format given the time in epoch:     
date -d ’1970-01-01 UTC +109438923 seconds’

Courtesy: http://geeki.wordpress.com/2007/10/24/linux-date-and-epoch/

No comments: