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

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

Thread Previous | Thread Next
From:
Paul LeoNerd Evans
Date:
January 25, 2012 09:06
Subject:
Re: POSIX::strftime fails to cope with negative mday
Message ID:
20120125170645.GK25615@cel.leo
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

leonerd@leonerd.org.uk
ICQ# 4135350       |  Registered Linux# 179460
http://www.leonerd.org.uk/

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