On Mon, 13 Dec 2004, Tim Jenness wrote:

On Mon, 13 Dec 2004, Dave Rolsky wrote:
Maybe it could be something like DT::Duration::Fractional?  What do others
think?

A variant of Duration that assumes standard lengths for day, minutes, hour etc, and with a caveat that it will always add seconds when combined with a DateTime object would be great.

If this is the route to be taken, it should be sufficient to create a standard DateTime::Duration object (instead of a subclass) with the duration expressed on as seconds/nanoseconds. Then ->in_units would work as you had expected.

Am I volunteering...?

Are you? :)

Cheers,

-J

--

Reply via email to