Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Error parsing using Time::Piece

by hippo (Bishop)
on Apr 28, 2015 at 18:45 UTC ( [id://1125044]=note: print w/replies, xml ) Need Help??


in reply to Error parsing using Time::Piece

I see the same with version 1.20_01, so it's nothing new.

$ perl -MTime::Piece -E 'say Time::Piece->strptime("2015-04-28T19:40:0 +0", q{%Y-%m-%dT%T})->strftime;' Tue, 28 Apr 2015 19:40:00 UTC $ perl -MTime::Piece -E 'say Time::Piece->strptime("2015-04-28T19:40:0 +0", q{%FT%T})->strftime;' Error parsing time at /usr/lib64/perl5/Time/Piece.pm line 469.

If you avoid %F for now that should serve as a workaround.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1125044]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-23 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found