Help for this page

Select Code to Download


  1. or download this
    # This function will return 1 if it is a leap year, or 0 if it's not
    
    sub LeapYear 
    ...
        $iTime += $iDay;
        return $iTime;
    }
    
  2. or download this
    ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time
    +);
    my $timestamp = &LocaltimeExcel( $sec, $min, $hour, $mday, $mon, $year
    + );
    $timestamp =~ s/\./\,/;
    
    print $timestamp;