Hi,

The documentation does not specify what What does
DateTime::Duration->compare() returns.

>From some testing I've done it seems like it

   - 1 if the first duration is larger than the second,
   - 0 if the durations are equal
   - -1 is the second duration is larger than the first

Can anyone confirm this, and possibly update the documentation?

Documentation is found here:
http://search.cpan.org/~drolsky/DateTime-1.03/lib/DateTime/Duration.pm#DateTime::Duration->compare(_$duration1,_$duration2,_$base_datetime_)

Kind regards,
Andreas Isberg
Telefon: 072-588 91 95

Reply via email to