develooper Front page | perl.perl5.porters | Postings from October 2003

RE: [perl #24372] perlbug AutoReply: Errors in gmtime() and localtime()

Derek Dongray
October 31, 2003 01:58
RE: [perl #24372] perlbug AutoReply: Errors in gmtime() and localtime()
Message ID:
Please ignore this report. The code performs as documented.

The reason I submitted it was that code which had been working for several
months stopped working late last night (after midnight). While investigating
it, I noticed the way gmtime/localtime return years and suspected it was the

In fact, the cause of the error was that code which was doing date
arithmetic did not correct the values returned by gmtime before using them.
It was the month that caused the error. All dates after 1st Aug were
accepted with the month offset by one until 31 Oct, when the offset produces
31 Sep and is flagged illegal.


Derek. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About