Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Verifying a date

by daxim (Curate)
on Oct 02, 2019 at 16:24 UTC ( [id://11106975]=note: print w/replies, xml ) Need Help??


in reply to Verifying a date

Mind the behaviour of the %y token.
$strp = DateTime::Format::Strptime->new(pattern => '%m.%d.%y'); $dt = $strp->parse_datetime('02.29.16'); # defined $dt = $strp->parse_datetime('02.29.19'); # undefined

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2025-03-27 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (70 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.