Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How to check if a date exists ?

by james2vegas (Chaplain)
on Oct 18, 2012 at 10:23 UTC ( [id://999701]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # no 29 feb 2001
    my $dt = Time::Piece->strptime("2001-02-29", "%F");
    # will return 2001-03-01 
    print $dt->strftime("%F");
    
  2. or download this
    my $dt = eval { 
              Time::Piece->strptime("2001-04-32", "%F")
             } or warn "This is not a valid date ($@).\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-25 11:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found