
Oct. 2, 1998
6:39 a.m.
Related problem: What is the semantics of decimal fractions of minutes and hours during a leap second. These are obviously illdefined and a neat solution is not possible
Why not? The day is just 1 second longer, so you use a denominator of 86401 instead of 86400 when computing the fraction.
(or 86399) Gulp! I did not catch this one, when I wrote yesterday that struct xtime can be adequate for inputting TIME_TAI values. Clearly, if you use a TIME_TAI value stored in struct xtime, you should not use fractional specifiers for strfxtime, because the result might be wrong if the corresponding period of time in the UTC scale include a leap second. Antoine