In fact, I used to have code very much like that.
Then someone changed the interval from "1 month" to "20 days", and I started wishing I'd used Date::Calc right from the start...
But your way should work fine for what he needs, as long as the specs don't change down the road.
--
Mike
In reply to Nice ugly hack
by RMGir
in thread where does the time go?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |