DateTime::Duration->compare() return value is not specified in the documentation.
[email protected] (Andreas Isberg) Thu, 10 Oct 2013 10:07:02 +0200
| Newsgroups | perl.datetime |
|---|---|
| Message-ID | <CACCHp3gL6J-HLSeP2OejR3_P3vupMeQUExfKTTx7rhvQmRBSdQ@mail.gmail.com> |
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