Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
To get your local time (perldoc -f localtime()):
perl -e 'my $date = localtime(time()); print $date;'
To get GMT time (perldoc -f gmtime()):
perl -e 'my $date = gmtime(time()); print $date;'
To get EST:
perl -e 'print "TZ=$ENV{TZ}: ", scalar localtime, "\n"; $ENV{TZ}="US/Eastern"; print "TZ=$ENV{TZ}: ", scalar localtime, "\n"' [download]