Ron Blaschke writes:

> DateTime::Format::ISO8601 feels rather heavyweight, with dependencies
> on DateTime

DateTime _is_ quite heavyweight, but it's also generally right, and
there's a whole suite of modules which work with it, meaning that you
can live almost entirely in the DateTime world for all your date- and
time- stuff.

For any one individual task you can likely come up with a module which
just does that and does it more leanly, but there is an advantage in
having various date- and time-based modules working together, and also
in having them being based on something which gets right all the really
awkward bits (such as leap seconds, time zones, and daylight-saving
time); even if you don't need that, somebody else will.  

It's a bit of a chicken-and-egg thing, but obviously DateTime is only an
awkward prerequisite of a module if you don't already have it installed.
And the more people who embrace DateTime, the more it will be seen as a
reasonable module for othewr things to be based on.

> ... and seems to be able to parse, but not format.

I haven't looked at DateTime::Format::ISO8601, but if that is the case
then I suspect it's because DateTime emits in ISO 8601 format by
default, so you don't need to do anything special to get it.

Smylers

Reply via email to