"be consistent" | |
PerlMonks |
Re^2: Getting previous dates from the current dateby Smylers (Pilgrim) |
on Mar 29, 2005 at 17:01 UTC ( [id://443184]=note: print w/replies, xml ) | Need Help?? |
DateTime is also very good. I agree; the DateTime suite is excellent: it has a very well-thought-out interface, does pretty much anything that any of the other modules do, and correctly covers all the awkward corners of date- and time-handling that you don't want to think about. This thread has a bunch of different responses, but none of them look to me anywhere near as simple as:
Update: And, after actually bothering to read the other suggestions (rather than just noticing how complicated they look), the hand-rolled ones (avoiding modules for the date arithmetic) all seem to be wrong as well. So that's another advantage of DateTime: it quietly gets correct things that you haven't even bothered to think about. Smylers
In Section
Seekers of Perl Wisdom
|
|