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 <matt@sergeant.org> To: Rob Dixon <rob.dixon@gmx.com> 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. Matt. On 2012-06-06, at 3:11 PM, Rob Dixon <rob.dixon@gmx.com> 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 www.opensource.apple.com 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