[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Time again



At 1.11 97/3/13, Darryl Caldwell wrote:
>Can't say there is much of an interface with Time::Local. I'm going to need
>a bit more of a kick in understanding it's implementation.
>
>
>I tried the following from the synopsis:
>
>use Time::Local;
>
>$time = timelocal($sec,$min,$hours,$mday,$mon,$year);
>
>print $time;
>
>
>and got the following:
>
># Day out of range 1..31 in timelocal.pl

You need to provide values for each variable.  The range of $mday is 1..31,
but if $mday is not defined, its numeric value is 0, so it is out of range.

#================================================================
Chris Nandor                                      pudge@pobox.com
PGP Key 1024/B76E72AD                           http://pudge.net/
Keyfingerprint = 08 24 09 0B CE 73 CA 10  1F F7 7F 13 81 80 B6 B6