How to get the current epoch time in ...
Unix/Linux |
date +%s |
Convert from human readable date to epoch
Unix/Linux |
date +%s -d"Jan 1, 1980 00:00:01" Replace '-d' with '-ud' to input in GMT/UTC time. |
Convert from epoch to human readable date
Unix/Linux |
date -d @1190000000 Replace 1190000000 with your epoch, needs recent version of 'date'. Replace '-d' with '-ud' for GMT/UTC time |