There's nothing wrong. Perl localtime and gmtime are pretty much wrappers for Unix localtime and gmtime, which return 'struct tm's. About the only field in that struct which *isn't* 0-based is the day of the month. The whole idea is that in order to get pretty output that you can take the return values and use them as array indices into say arrays of strings (monthnames or days of the week), which are by default 0-based. On Sat, 26 Dec 1998, the hafler trio wrote: > use Time::localtime; > > $reallyWhen = localtime->mon(); > print $reallyWhen; > > please, tell me that there is something wrong. this is nuts. > > I get "11" as the result. > > as it is with > > use Time::localtime; > > $reallyWhen = localtime->mon(); > printf "the month is %d", $reallyWhen; > > sys 8.5.1 > > ps. I'd LOVE it to be really november, but..... > > > > ***** Want to unsubscribe from this list? > ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch > ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch