Date::Manip is excellent for certain things like natural string parsing but otherwise it's not the best choice. DateTime is amazing and handles time zones, ranges, date math, and such really well but it has bit of a learning curve and it's a little slow. Date::Calc is very fast but its functions are generally low level so your code will be more verbose. There are some other date packages but they offer nothing over DateTime and Date::Calc.
Prefer DateTime if you want a wealth of date operational power. Prefer Date::Calc if you have a need for speed.
Update: been years but I want to amend it—Time::Piece has something to offer in comparison to the others: it’s core (since v5.9.5).
In reply to Re: More Date Arithmetic/Manipulation: Question
by Your Mother
in thread More Date Arithmetic/Manipulation: Question
by newbie01.perl
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |