develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [ID 20010702.001] localtime() returns incorrect day-in-the-year value

Thread Previous | Thread Next
From:
schwern
Date:
July 2, 2001 10:15
Subject:
Re: [ID 20010702.001] localtime() returns incorrect day-in-the-year value
Message ID:
20010702131533.A27988@magnonel.guild.net
On Sun, Jul 01, 2001 at 06:52:51PM -0400, Kenneth Tomiak wrote:
> localtime returned 181, but I know it is 182.

localtime's year day mirror's C's localtime() function and January 1st
is 0, not 1, that's probably the confusion here. :( Sorry to make you
go through all that work.

I'll patch up perlfunc to document that.

-- 
Michael G Schwern   <schwern@pobox.com>   http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <perl-qa@perl.org>       Kwalitee Is Job One

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About