
On 26 January 2005 00:27, Ashley Yakeley wrote:
In article <5.1.0.14.2.20050125161230.02e21620@127.0.0.1>, Graham Klyne
wrote: I believe I'm in a minority and don't challenge the majority decision, but I would prefer a date/time representation based on a pair (days,ticks), where ticks is a count of some suitable fraction of a second. My reasons have been recorded here previously ... I'll dig out a reference if anyone cares.
I think (days,ticks) might be worth examining for UTC time, since UTC has a variable number of seconds for each day (usually 86400, but may be one more or one less).
I like the idea of having a single notion of absolute time, which is independent of TAI or UTC time. You can do arithmetic on absolute time (add/subtract absolute units of time, find absolute time differences), and convert to/from TAI and UTC. My library happens to keep absolute time as TAI seconds since the epoch, but it doesn't have to. A representation using (days,ticks) sounds like it might be hard to do arithmetic on, though. Cheers, Simon

In article
<3429668D0E777A499EE74A7952C382D1030DE110@EUR-MSG-01.europe.corp.microso
ft.com>,
"Simon Marlow"
I like the idea of having a single notion of absolute time, which is independent of TAI or UTC time. You can do arithmetic on absolute time (add/subtract absolute units of time, find absolute time differences), and convert to/from TAI and UTC.
My library happens to keep absolute time as TAI seconds since the epoch, but it doesn't have to. A representation using (days,ticks) sounds like it might be hard to do arithmetic on, though.
I think your ClockTime is a sensible way to represent absolute time for TAI. But we also need something that represents (for instance) "2008-08-03 11:00:00 UTC" even though we don't know what precise TAI time that will be. For this I would consider using a (days,ticks) pair: it allows you to do arithmetic such as "5 UTC days later" and end up with the expected answer even when there are intervening leap seconds. -- Ashley Yakeley, Seattle WA

On 2005-01-27, Ashley Yakeley
In article <3429668D0E777A499EE74A7952C382D1030DE110@EUR-MSG-01.europe.corp.microso ft.com>, "Simon Marlow"
wrote: I like the idea of having a single notion of absolute time, which is independent of TAI or UTC time. You can do arithmetic on absolute time (add/subtract absolute units of time, find absolute time differences), and convert to/from TAI and UTC.
My library happens to keep absolute time as TAI seconds since the epoch, but it doesn't have to. A representation using (days,ticks) sounds like it might be hard to do arithmetic on, though.
I think your ClockTime is a sensible way to represent absolute time for TAI. But we also need something that represents (for instance) "2008-08-03 11:00:00 UTC" even though we don't know what precise TAI time that will be. For this I would consider using a (days,ticks) pair: it allows you to do arithmetic such as "5 UTC days later" and end up with the expected answer even when there are intervening leap seconds.
This seems reasonable at first glance. What happens when the rules for leap years change though? (Okay, so that's really planning ahead...) I would in fact reify TAI for purposes of exchange with other systems. "Now, who wants to think about timekeeping in domains where SR and GR effects matter?" -- Aaron Denney -><-
participants (3)
-
Aaron Denney
-
Ashley Yakeley
-
Simon Marlow