P is for Practical | |
PerlMonks |
Re: previous and next quarter calculationby dws (Chancellor) |
on Feb 16, 2005 at 07:05 UTC ( [id://431458]=note: print w/replies, xml ) | Need Help?? |
Is there any method to find next and previous quarter starting and ending dates based on the current date, using DateTime or any other date modules? Try the no modules approach: Table lookup. I'm serious. You can precalculate and store all of the quarter start and stop dates from now until the Unix clock runs out in less memory that most of the date modules will soak you for.
In Section
Seekers of Perl Wisdom
|
|