Re: DateTime::Duration-compare() return value is not specified in the documentation.

2013-10-11 Thread Rick Measham
Hi Andreas, It does need to be documented, but to explain: $dt-compare follows the behavior of `cmp` and ``. - Rick On Thu, 10 Oct 2013 10:07:02 +0200, Andreas Isberg wrote: Hi, The documentation does not specify what What does DateTime::Duration-compare() returns. From some

DateTime::Duration-compare() return value is not specified in the documentation.

2013-10-10 Thread Andreas Isberg
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