Difference between revisions of "convert unixepoch time to human readable"
From thelinuxwiki
Line 1: | Line 1: | ||
using the date command | using the date command | ||
+ | |||
+ | example of a one line script where the timestamp in unizepoch is 1454177959.318288 | ||
+ | |||
# 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 |
Latest revision as of 18:25, 30 January 2016
using the date command
example of a one line script where the timestamp in unizepoch is 1454177959.318288
# TIMESTAMP=1454177959.318288; HUMANTIME=`date -d @$TIMESTAMP`; echo $HUMANTIME Sat Jan 30 12:19:19 CST 2016