OLLS: Epoch to Human Readable
Posted: August 26th, 2009 | Author: Matt | Filed under: One Liners | Tags: epoch, one liner, scriptable | No Comments »Ever had the problem, perhaps with Squid access logs of getting human readable time from the printed Epoch time ? I know I have. And I always forget to save this one….
perl -e ‘print scalar(gmtime(1251265859.690)), “\n”‘
That’ll print the human readable time for 1251265859.690. Very handy….
You’re welcome.