How-To: Convert Epoch to Normal Time
If you want to covert from epoch (number of seconds since 1970) to a more human readable format, you can use this simple perl script:
#!/usr/bin/perl
$time = localtime($ARGV[0]);
print “$time\n”;
Save it as epoch.sh and make it executable, then simply issue the following command from the command line:
$> ./epoch.sh 1211926097
Wed May 28 08:08:17 2008
It’s that easy!
