Help for this page

Select Code to Download


  1. or download this
    my $Now = strftime('%Y%m%d', localtime)
    
  2. or download this
    ($sec, $min, ...) = (localtime())[0..5];
    $Now = sprintf('%4d%2d%2d', $sec, $min...);