Overview
| Artifact ID: | 659e3165f23529ec34e27952a471ce0d909ff18aa1da37eb96b3309bb847be6b |
|---|---|
| Ticket: | f2b5f89c0d8520ea86b929daa19ec13fc3a24d2d
clock scan of leapsecond: wrong result in 8.6 and 9.0 |
| User & Date: | pooryorick on 2024-11-21 20:28:49 |
Changes
- icomment:
I believe it is safest to not to provide for the representation of leap seconds. At https://www.cl.cam.ac.uk/~mgk25/posix-clocks.html, Markus Kuhn states, "Later I came to the conclusion that attempting to present inserted leap seconds as an out-of-scale timestamp of the form 23:59:60 to applications at an operating-system-API or network-protocol level is not very useful for most applications and that a standardized smoothed form of UTC, such as my UTC-SLS proposal (2006), is far more practical in almost all applications, except for those concerned with precisely tracking the motion of physical masses, where TAI is a more useful timebase." This, along with the position of PostGreSQL that sebres pointed out, is further evidence that the best policy is not to try to accept and handle representations of leap seconds. I.e. Tcl should behave as follows: <code><verbatim> % clock scan "2012-06-30 23:59:60" -gmt 1 unable to convert input string: invalid time </verbatim></code>
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"