develooper Front page | perl.perl5.porters | Postings from January 2012

Re: POSIX::strftime fails to cope with negative mday

Thread Previous | Thread Next
Paul LeoNerd Evans
January 25, 2012 09:06
Re: POSIX::strftime fails to cope with negative mday
Message ID:
On Tue, Jan 24, 2012 at 11:13:38AM +0000, Paul LeoNerd Evans wrote:
> I can see no reason why one ought to work when the other does not, given
> as POSIX::strftime is supposed to be normalising values, and it does
> when they are positive. I suspect a signed/unsigned bug somewhere.

Well, since nobody seems to express an opinion, I'm going to have a
quick look and see if I can see an obvious bug and send a patch. If not
I wonder if it would be best to document that POSIX::strftime() will not
work with non-normalised values, and possibly even remove the call to
mini_mktime() within it.

Paul "LeoNerd" Evans
ICQ# 4135350       |  Registered Linux# 179460

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