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

Fwd: Re: Time::Piece problem

Thread Next
Rob Dixon
June 6, 2012 17:10
Fwd: Re: Time::Piece problem
Message ID:
I wrote this email to the author of Time::Piece, and he directed me to
bring it here instead.

-------- Original Message --------
Subject: Re: Time::Piece problem
Date: Wed, 6 Jun 2012 20:03:22 -0400
From: Matt Sergeant <>
To: Rob Dixon <>

Time::Piece is now part of core Perl. You should take it to perl5-porters.

I'd happily merge in the changes to the cpan repository though.


On 2012-06-06, at 3:11 PM, Rob Dixon <> wrote:

> Hi Matt
> I often use your Time::Piece module and frequently have to parse dates
> like %Y-%m-%d. At present the module's POD refers me to the FreeBSD
> documentation for strptime, which says there is an abbreviation %F for
> this format.
> Unfortunately this doesn't work for your module, and F is expected only
> as part of a locale extension in %EF so Time::Piece->strptime throws an
> error.
> You have a comment in your XS code that says an improved implementation
> of strptime is available from and you may use
> more of this in your module in the future. This version correctly
> supports %F, and I wonder if it is likely to be adopted soon?
> There seems to be no backwards-compatability issue, as %F can be
> distinguished from %F (at present the code finds F after a percent and
> then dies if it isn't preceded by E).
> Another thought is that it would be nice if Time::Piece::->strptime
> behaved the same way as DateTime::Format::Strptime.
> I am more than happy to make any changes necessary if you would like to
> hand this over to me.
> Best regards,
> Rob Dixon

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