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

Re: Generate a date stamp of today less a date interval

by dave0 (Friar)
on Dec 20, 2005 at 04:57 UTC ( #517969=note: print w/ replies, xml ) Need Help??


in reply to Generate a date stamp of today less a date interval

Here's another option, using the DateTime modules:

use DateTime; my $date = DateTime->now->subtract( DateTime::Duration->new( months => 13 ) ); my $date_limit = $date->dmy;


Comment on Re: Generate a date stamp of today less a date interval
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2014-08-31 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls