Convert Unix time to human readable time

$ date; date +%s; date -d @$(date +%s)
Fri Jul 14 20:56:42 UTC 2017
1500065802
Fri Jul 14 20:56:42 UTC 2017

Display date and time

date
Fri Jul 14 20:58:12 UTC 2017

Display Unix time

date +%s
1500065900

Convert to human readable time

date -d @1500065900
Fri Jul 14 20:58:20 UTC 2017
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s