Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: use of date n time functions

by blackgoat (Acolyte)
on Mar 09, 2010 at 05:16 UTC ( [id://827471]=note: print w/replies, xml ) Need Help??


in reply to Re: use of date n time functions
in thread use of date n time functions

Could you pls give me a sample showing how to use Date::Calc to compare dates??

Replies are listed 'Best First'.
Re^3: use of date n time functions
by ZlR (Chaplain) on Mar 10, 2010 at 11:18 UTC

    It's all in the Date::Calc help page : look at the recipes

    For instance :

    use Date::Calc qw( Delta_Days ); if (Delta_Days($year1,$month1,$day1, $year2,$month2,$day2) > 0)
    There's also examples about : How do I compare two dates with times? , which might be just what you need.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2025-03-26 07:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (67 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.