Help for this page

Select Code to Download


  1. or download this
    my $time_zone_func =
       $file =~ /^London/
    ...
          : \&CORE::localtime;
    
    strftime($date_format, $time_zone_func->(time))
    
  2. or download this
    my $time_zone_func =
       $file =~ /^London/
    ...
          : sub { localtime($_[0]) };
    
    strftime($date_format, $time_zone_func->(time))
    
  3. or download this
    my $time_zone_func = sub {
       $file =~ /^London/
    ...
    };
    
    strftime($date_format, $time_zone_func->(time))