Convert Unix Timestamp to Date Format

Recently, had a look at MySQL slow log to see what’s happening in a particular site. MySQL logged the unix timestamps that is good for many reasons. In order to convert this, here’s a one-liner…

date -d @1382734106
# output - Fri Oct 25 20:48:26 UTC 2013

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