Help for this page

Select Code to Download


  1. or download this
    DateTime->from_epoch(epoch => $t, time_zone => 'local');
    
  2. or download this
    C:\>perl -MPOSIX=strftime -le "print strftime(q(%Z), localtime)"
    AUS Central Standard Time
    
  3. 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');