Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Timelocal out of range message

by hdb (Monsignor)
on Feb 03, 2014 at 07:40 UTC ( [id://1073145]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Timelocal out of range message
in thread Timelocal out of range message

In the version I have it looks like:

my @MonthDays = ( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ); ... my $md = $MonthDays[$month]; ++$md if $month == 1 && _is_leap_year( $year + 1900 ); croak "Day '$mday' out of range 1..$md" if $mday > $md or $md +ay < 1; croak "Hour '$hour' out of range 0..23" if $hour > 23 or $ho +ur < 0; croak "Minute '$min' out of range 0..59" if $min > 59 or $mi +n < 0; croak "Second '$sec' out of range 0..59" if $sec >= 60 or $se +c < 0;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1073145]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-16 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found