Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: previous and next quarter calculation

by fglock (Vicar)
on Feb 16, 2005 at 14:04 UTC ( #431574=note: print w/ replies, xml ) Need Help??


in reply to previous and next quarter calculation

How about:

use DateTime::Event::Recurrence; my $fiscal = monthly DateTime::Event::Recurrence( interval => 3 ); print $fiscal->next( DateTime->today ), "\n"; print $fiscal->current( DateTime->today ), "\n"; # 2005-04-01T00:00:00 # 2005-01-01T00:00:00


Comment on Re: previous and next quarter calculation
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2015-07-30 23:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls