On Sat, 2003-07-05 at 06:10, Dave Rolsky wrote:

> Can you and/or Joshua explain what this would be used for?

$greatest_duration = DateTime::Duration::set->new(
        from_durations => [$d1, $d2, $d3]
)->max(
        from => DateTime->now()
);

Also, 
->min(
        from => $dt
)

->median(
        from => $dt
)

->mean(
        from => $dt
) # would return a duration object that doesn't necessarily match one of
the set.

Just some thoughts.

Cheers!
Rick

Reply via email to