quick and dirty timestamp conversion

quick perl script to convert unix timestamp to human readable time

#!/usr/bin/perl
print scalar localtime(shift||time), "\n";

usage: ./script.pl <timestamp>

example:
./unix_timestamp.pl 1175313600
Sat Mar 31 00:00:00 2007

«
»

    Leave a Reply

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