Difference between revisions of "convert unixepoch time to human readable"

From thelinuxwiki
Jump to: navigation, search
(Created page with "using the date command TIMESTAMP=1454177959.318288; HUMANTIME=`date -d @$TIMESTAMP`; echo $HUMANTIME Sat Jan 30 12:19:19 CST 2016")
 
Line 1: Line 1:
 
using the date command
 
using the date command
  TIMESTAMP=1454177959.318288; HUMANTIME=`date -d @$TIMESTAMP`; echo $HUMANTIME
+
  # TIMESTAMP=1454177959.318288; HUMANTIME=`date -d @$TIMESTAMP`; echo $HUMANTIME
Sat Jan 30 12:19:19 CST 2016
+
Sat Jan 30 12:19:19 CST 2016

Revision as of 18:24, 30 January 2016

using the date command

# TIMESTAMP=1454177959.318288; HUMANTIME=`date -d @$TIMESTAMP`; echo $HUMANTIME
Sat Jan 30 12:19:19 CST 2016