On Sun, Aug 22, 2010 at 12:19:52PM -0700, Michael G Schwern wrote:
> Division works for every unit but months and years.  Perhaps it could be
> implemented for durations that are only days/hours/minutes and throw an
> exception if it contains a month or year?

That's only approximately true. Some days contain 25 or 23 hours (consider
the days where daylight savings switches over), and when a leap second is
introduced, a minute can contain 61 seconds or a day can contain 86401
seconds.  Context (an absolute date) is needed to perform these duration
calculations correctly.


-- 
     "Worry: Interest paid on trouble before it comes due." - William Inge
            .             .            .            .             .
Karen Etheridge, ka...@etheridge.ca       GCS C+++$ USL+++$ P+++$ w--- M++
http://etheridge.ca/                      PS++ PE-- b++ DI++++ e++ h(-)

Reply via email to