develooper Front page | perl.perl5.porters | Postings from April 2000

Re: PATCH [5.6.0-RC1] return value of localtime() not documented

Thread Previous | Thread Next
From:
Mark-Jason Dominus
Date:
April 23, 2000 16:46
Subject:
Re: PATCH [5.6.0-RC1] return value of localtime() not documented
Message ID:
20000423234339.14216.qmail@plover.com

Last month, I submitted a patch that added the following text to the
`localtime' and `gmtime' sections of perlfunc.pod:

> +0 indicating Sunday and 3 indicating Wednesday.  $yday is the day of
> +the year, in the range C<1..365> (or C<1..366> in leap years.)  

I got a chance to try ActivePerl last week, and it appeared that the
$yday range was 0..364, not 1..365.  Can someone confirm this?  It is
not mentioned in perlport.

I wish I could suggest that Perl increment the yday value on Windows
machines, but I guess it's probably much too late for that.


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