- or download this
DateTime->from_epoch(epoch => $t, time_zone => 'local');
- or download this
C:\>perl -MPOSIX=strftime -le "print strftime(q(%Z), localtime)"
AUS Central Standard Time
- or download this
#!/usr/bin/perl -w
use strict;
...
my $dur = DateTime::Duration->new( hours => ($lh-$gh), minutes => ($lm
+-$gm));
print sprintf "%+02.2d%02d\n", $dur->in_units('hours','minutes');