Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How to check if a date exists ?

by james2vegas (Chaplain)
on Oct 18, 2012 at 10:23 UTC ( #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
Node Status?
node history
Node Type: note [id://999701]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2014-08-30 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (292 votes), past polls