Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 taking refuge in the Monastery: (6)
As of 2014-12-19 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (69 votes), past polls