Re: [sdw] intervalDuring can really compare the values of two date time stamps

Timestamps, such as defined in IETF RFC 3339 [https://tools.ietf.org/html/rfc3339 ] which is based on ISO 8601, can be compared and 'before', 'after', 'same time', 'during', 'overlapping', etc can be correctly established.

However, in general, two timestamps cannot be subtracted to give a duration, unless the calendars are precisely known and correctly implemented.

Please note that some implementations that look like timestamps, such as Posix or Unix seconds since the 1970-01-01T00:00:00.000Z epoch are not well behaved, as they do not always have a strictly monotonic sequence of increasing times. For example, to cope with leap seconds, Posix implementations reset the clock to the previous second. If the clock count is more frequent than every second, the clock times 'jump backwards' in this case, rather than pause and 'mark time'.

Does this answer your question?


-- 
GitHub Notification of comment by chris-little
Please view or discuss this issue at https://github.com/w3c/sdw/issues/1055#issuecomment-406282581 using your GitHub account

Received on Thursday, 19 July 2018 13:49:20 UTC