# from Ovid
# on Friday 03 July 2009 06:40:

> I can't find a proper parser for it and it turns out to have some
> tricky bits.  Basically, I want to do this:
>
>  my $duration = DateTime::Duration::W3C->new("P1Y2MT2H");

Are the tricky bits in the parsing or the calendar math necessary to get 
to the end datetime?  The math should be nicely handled by Date::Piece 
up to the hours, where you then take at() of the start time and add to 
that Time::Piece object.

If you want to do the parser and duration object, I'll happily take a 
Date::Piece patch to support it.

--Eric
-- 
hobgoblin n 1: (folklore) a small grotesque supernatural creature that
          makes trouble for human beings
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Reply via email to