Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Date::Manip - date differences

by dsheroh (Monsignor)
on Nov 20, 2008 at 16:11 UTC ( [id://724911]=note: print w/replies, xml ) Need Help??


in reply to Date::Manip - date differences

The easiest way to do it using Date::Manip would be to grab the documentation and use something very like example #4 ("The amount of time between two dates.") to determine the difference between the two dates, then use something very like example #5 ("To determine a date a given offset from another.") to apply the calculated offset to other dates.

The most efficient way to do it would likely be to not use Date::Manip, as detailed in the "SHOULD I USE DATE::MANIP" section of the documentation. (Although I can't tell you what would be the more efficient module to use because I tend to value "easy" over "efficient" and would just use Date::Manip despite the author's explanation of why I shouldn't.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found