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

[MacPerl] time/ date



am trying to print current time and date.

this works fine except


@t = ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =  localtime(time);
printf "%d:%d:%d:%d:%d:%d:%d:%d:%d:\n\n", @t;

-----------it returns

35:45:19:16:1:96:5:46:0:

that's January for the month.
I checked my control panels and I'm in February alright.

anybody know what gives?

janis