Linux datel

From John Freier
Jump to: navigation, search

Convert long time to date

 date -r 1381122000
 
 output: Mon Oct  7 00:00:00 CDT 2013

Get the current long time stamp

 date '+%s'
 
 output: 1418321034


Get a date as long timestamp