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

Re: RFC: adding POSIX::strptime()

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
July 20, 2011 06:49
Subject:
Re: RFC: adding POSIX::strptime()
Message ID:
20110720134923.GL23881@plum.flirble.org
On Wed, Jul 20, 2011 at 02:44:17PM +0100, Paul LeoNerd Evans wrote:
> I've always considered it an omission, that POSIX.{pm,xs} don't wrap
> strptime(3), the way they wrap strftime(3). Would anyone agree it should
> be added?

It seems like an omission, but

> A related question is how to handle the case of partial parsing? Again,
> most of the existing CPAN wrappers want to consume all of the string
> input, and either complain if given trailing content
> (Time::Piece::strptime), or just plain ignore it

given that Time::Piece has been shipped as part of the core distribution
since 5.10.0, what's the advantage in duplicating strptime in POSIX?

Nicholas Clark

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