Difference between revisions of "convert unixepoch time to human readable"
From thelinuxwiki
(Created page with "using the date command TIMESTAMP=1454177959.318288; HUMANTIME=`date -d @$TIMESTAMP`; echo $HUMANTIME Sat Jan 30 12:19:19 CST 2016") |
|||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
using the date command | using the date command | ||
− | TIMESTAMP=1454177959.318288; HUMANTIME=`date -d @$TIMESTAMP`; echo $HUMANTIME | + | |
− | Sat Jan 30 12:19:19 CST 2016 | + | 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 |
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