On Mon, 30 Jun 2003, Ben Bennett wrote:

> I am totally mystified.  I read "If any of the numbers are negative,
> the entire duration is negative." as indicating that the individual
> signs don't matter.
>
> I think the error is on DT::Duration line 52:
>   $self->{minutes} = abs( ( $p{hours} * 60 ) + $p{minutes}  ) * $self->{sign};
> Which should perhaps be:
>   $self->{minutes} = ( abs( $p{hours} * 60 ) + abs( $p{minutes} ) ) * $self->{sign};

Yep, looks like a bug.


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to