From: Hal Fulton Date: 2004-04-02T02:24:24+09:00 Subject: Re: How to get internal state of DateTime in seconds Charles Comstock wrote: > Umm I don't understand how this relates, I can construct Time objects > from strings just fine (parsedate), I want a library to take the time > difference in seconds from two Time or Date objects, and format output > of that into something meaningful, ie %H:%M:%S would result in > "00:04:00" for your example difference. But it should scale all the way > up to differences in Months/Years. It seems like a perfectly useful > library, and I was suprised it hadn't been written. Yes it's just > division up to months, and then months cares what the actual start/end > times were, but still it seems like a useful object. Seconds is all > fine and good when your just recording short ranges, but for longer... Personally up to "days" would be good enough for me. I once wrote a simple method sec2dhms that took seconds and returned [days,hours, minutes,seconds]. "Month" and even "year" are problematic because they don't have a single fixed length. Hal