Dave Rolsky wrote:
> - When given mixed positive & negative arguments, DateTime::Duration
> no longer forces all arguments to be negative.
> 
> - For mixed durations, the is_positive, is_zero, and is_negative
> methods all return false.

Is it possible to detect mixed durations other than checking all of
is_positive, is_zero and is_negative? For example by adding an is_mixed method?

You could also change the behaviour of is_positive etc., returning 0 for
negative or zero, and undef for 'unknown' (mixed durations).

Eugene

-- 
+++ NEU bei GMX und erstmalig in Deutschland: T�V-gepr�fter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz

Reply via email to