Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Re: Finding gaps in date rangesby bjelli (Pilgrim) |
on May 11, 2001 at 01:15 UTC ( [id://79569]=note: print w/replies, xml ) | Need Help?? |
boohoo, the above article is mine, but I posted it anonymously by mistake. oh higher powers, if it please you, transfer the XPs of the article to this humble scribe. I'm a big fan of peanos axioms. So I started with the idea: if it weren't dates we were dealing with, but natural numbers, then I would just sort the numbers, and compute the gaps with one simple loop. I decided to convert you date-format to something that can be sorted numerically (YYYYMM, with month in two digits, like "02"), and I made up a function "nextmonth" for incrementing the date.
share and enjoy -- Brigitte 'I never met a chocolate I didnt like' Jellinek http://www.horus.com/~bjelli/ http://perlwelt.horus.at
In Section
Seekers of Perl Wisdom
|
|