Dave Rolsky schreef: > On Sat, 23 Aug 2003, Eugene van der Pijll wrote: > > > The only problem is that DT::subtract_datetime doesn't use it. It > > probably should. (It would be even better if there was an option to > > calculate the difference in days & secs. But the default should probably > > be to return a difference of months, days, minutes, seconds.) > > I think the default should probably be the accurate method, but I do think > offering a way to return the other values would be good.
You probably mean "the more accurate method". Days are of different lengths too, even in UTC. (But only because of leap seconds, of course. No DST.) But the most accurate method is not necessarily the best. If the two dates are far apart, most people will expect "y, m, d" durations. For example, do you not think these intervals are of the same length: 1 Jan 1991 to 1 Jan 1993, and 1 Jan 2001 to 1 Jan 2003 ? Most people would want these intervals to count as the same length, and would be surprised to see a difference. However, for these two intervals: 1 Feb 2003 to 1 Mar 2003, and 1 Mar 2003 to 1 Apr 2003, people wouldn't be surprised to see a difference. Probably... Eugene
