Help for this page

Select Code to Download


  1. or download this
    use POSIX qw(strftime);
    my $epochTime = 965760598;
    my $timeStr = strftime "%A, %B %d, %Y - %I:%M%p %Z", localtime($epochT
    +ime);
    print $timeStr;
    
  2. or download this
      %%   a literal %
      %a   locale's abbreviated weekday name (Sun..Sat)
    ...
      %Y   year (1970...)
      %z   RFC-822 style numeric timezone (-0500) (a nonstandard extension
    +)
      %Z   time zone (e.g., EDT), or nothing if no time zone is determinab
    +le