Tuesday, November 29, 2011

Convert UNIX timestamp to human date using command-line

I'm working on a project where date/time are sent in UNIX timestamp. Sometimes when I'm debugging, I want to check whether the usually 10-digit number is correct.

The easiest way I found is using the command-line terminal:

~$ date -r 1322532029 
Tue Nov 29 10:00:29 SGT 2011

No comments:

Post a Comment