bash date convert epoch time

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

Leave a Reply

Your email address will not be published. Required fields are marked *

VAMOVE *

*