Help for this page

Select Code to Download


  1. or download this
    use constant SECOND  => 0;
    use constant MINUTE  => 1;
    ...
        $time[MINUTE]      . ':' .
        $time[SECOND]
    ;
    
  2. or download this
    my $string =
        join('-', $time[WEEKDAY] + 1, $time[MONTH] + 1, $time[DAY])
      . '_' .
        join(':', @time[HOUR, MINUTE, SECOND])
    ;