Oberon has asked for the wisdom of the Perl Monks concerning the following question:
I'm attempting to convert some code over from the somewhat bloated Date::Manip to a slimmer combination of Date::Calc, Date::Parse, and Date::Format. (Aside: Yes, I have considered using DateTime. While there are many advantages thereto, the two facts that have stopped me thus far are 1) there is no general parsing mechanism a la Date::Parse, and 2) it would still be roughly 3x the size of D::C + D::P + D::F.)
Where I'm currently stuck is in dealing with the ISO week number format: yyyy-Www(-dow)?. For Date::Manip, the relevant format for UnixDate() is "%L-W%W". However, Date::Format seems to be lacking ... it has the %W, but nothing corresponding to the %L.
Can anyone suggest how I should be handling this? Is there some standard way that Date::Format is used for these types of date formats? Or is there another module that replaces Date::Format (that maintains a similar footprint)? Or ... something else?
I await enlightenment with appropriate humility.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Date::Format handling of ISO week number format
by grinder (Bishop) on Jan 15, 2008 at 11:42 UTC | |
by Oberon (Monk) on Jan 15, 2008 at 20:06 UTC | |
by grinder (Bishop) on Jan 16, 2008 at 11:50 UTC | |
by Oberon (Monk) on Jan 16, 2008 at 23:48 UTC |