Thursday, August 12, 2010

How to convert UNIX/LINUX time to readable format

How to get the current epoch time
date +%s
Convert from human readable date to epoch
date +%s -d"Jan 1, 1980 00:00:01"
Convert from epoch to human readable date
date -d @1190000000

No comments:

Post a Comment