Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Adding to dates

by Ponky (Curate)
on Aug 23, 2006 at 02:38 UTC ( #569009=note: print w/ replies, xml ) Need Help??


in reply to Re: Adding to dates
in thread Adding to dates

A little improvement is to include the duration definition in the add call:

$date->add( months => 1, end_of_month => 'preserve' );
Then you don't need the use DateTime::Duration either.


Comment on Re^2: Adding to dates
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2015-08-04 16:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (68 votes), past polls