off-by-one re leap seconds in subtract_datetime

2004-02-09 Thread Andrew Pimlott
Miscalculation of when we're in a leap minute. Andrew --- lib/DateTime.pm.orig2004-01-07 17:39:02.0 -0500 +++ lib/DateTime.pm 2004-02-09 22:19:24.0 -0500 @@ -908,7 +908,7 @@ { my ( $utc_rd_days, $utc_rd_secs ) = $smaller->utc_rd_values; -if ( $u

DateTime::Duration: always normalize nanoseconds

2004-02-09 Thread Andrew Pimlott
It seems consistent and logical to normalize nanoseconds when multiplying durations. There is also a comment about normalization that seems both redundant and misleading (since comparison doesn't depend on nanoseconds being normalized; I assume comparison used to be done without a reference time).