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

Re^2: Find 30 days from today's date

by ikegami (Pope)
on Jun 09, 2013 at 06:05 UTC ( #1037906=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $thirty_days_ago = DateTime->today(time_zone => 'local')->subtract(
    +days => 30);
    
  2. or download this
    my $thirty_days_ago = DateTime->now(time_zone => 'local')->set_hour(12
    +)->subtract(days => 30);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1037906]
help
Chatterbox?
[LanX]: is Glasgow that city where catholics and protestants fight in bars? ; )
[marto]: not really, but pick your side, we'll visit some real dumps
LanX will keep his pope tshirt at home
[LanX]: ah Sectarianism in Glasgow

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (15)
As of 2017-12-14 16:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (397 votes). Check out past polls.

    Notices?