Playing with some xml::rss code today for supporting rss 1.0 modules
mod_event, and mod_syndication so I wrote DateTime::Format::W3CDTF

Writing the module was simple, most of the logic is lifted directly from
Format::ICal.pm, but it brought up a couple of questions.

First I just want to confirm that DateTime does not support fractional
seconds?  Its a little used part of the spec,so I hardly think its a big
deal, but it would be nice to support if possible.

W3CDTf doesn't have any concept of a duration, so I left the
parse_duration(), and format_duration() methods out of the class, is this
allowed by the Format API?  (understanding that formats are still an alpha
feature)

Any thoughts on creating a Date::Format base class?  I imagine it would be
empty exception for some minimal documentation of the API. (or you could
stick in methods like parse_format { die "Must be overriden"; } but that
makes it impossible to use can() )

Are you interested in having this (and this sort of thing) checked into
the perl-date-time project on Sourceforge, or maintained separately?

kellan


-- 
"the truth is always revolutionary" [antonio gramsci]

[EMAIL PROTECTED]

Reply via email to