convert unixepoch time to human readable

From thelinuxwiki
Jump to: navigation, search

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