Home > HowTo, Linux > bash date convert epoch time

bash date convert epoch time

March 21st, 2013 Leave a comment Go to comments

Many times you will need to conver Unix/Linux epoch time to a readable date format
That is quite simple

$ date -d@1363497047
Dom Mar 17 02:10:47 BRT 2013

To get a current epoch time we simply use date command as follows:
$ date +%s
1363874548

Categories: HowTo, Linux Tags: , , , ,
  1. No comments yet.
  1. No trackbacks yet.

VAMOVE *

*