On Tue, 16 Aug 2005, Dave Rolsky wrote:
On Tue, 16 Aug 2005, Eugene van der Pijll wrote:
This suggests that the proper solution is not to have two methods, one
for local subtraction and one for utc subtraction; but to do
calculations with hours/mins/seconds in utc, and days/months/years in
local time.
No, it used to do that, but that caused complaints too ;)
Actually, looking closer I think that this is correct for adding durations
to datetimes. I need to come up with more test cases for datetime
subtraction to figure out the best behavior.
I'm working on this now and I'm doing it test first, with lots of
comments, so that once I'm done I can turn this into documentation.
More and more, I'm realizing that the calendar and the clock are two very
different beasts, with a strange relationship.
-dave
/*===================================================
VegGuide.Org www.BookIRead.com
Your guide to all that's veg. My book blog
===================================================*/