Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Verifying a date

by daxim (Curate)
on Oct 02, 2019 at 16:24 UTC ( #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
Node Status?
node history
Node Type: note [id://11106975]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2020-09-30 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (170 votes). Check out past polls.

    Notices?