Oct. 3, 1998
2:23 a.m.
Markus Kuhn writes:
Before any arithmetic, you first check whether there is a leap second in one of the arguments and abort if there is (because arithmetic is ill-defined in this case).
Of course, libtai doesn't have that problem. libtai provides support routines for addition, subtraction, comparison, halving, conversions to and from the external TAI64NA format, and floating-point approximations. Applications don't need to worry about the internal details.
xtime_get can fail
In libtai, tai_now() and taia_now() always succeed. ---Dan 1000 recipients, 28.8 modem, 10 seconds. http://pobox.com/~djb/qmail/mini.html