From 153bcd9bd3b337120e1afc75ce63cb5b80730913 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 8 Mar 2019 20:22:03 +0000 Subject: bugfix: leap second table. Also add leapsec reporting in localtm. --- doc/libstddjb/djbtime.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/libstddjb/djbtime.html b/doc/libstddjb/djbtime.html index f4d280d..724cd66 100644 --- a/doc/libstddjb/djbtime.html +++ b/doc/libstddjb/djbtime.html @@ -57,7 +57,8 @@ Converts the absolute TAI64 time in *t to an UTC time, stored in *u as an unsigned 64-bit integer. *u is actually 2^62 plus the number of seconds since the Epoch. The function returns 1 if it succeeds, or 0 (and sets errno) if an -error occurs. +error occurs. If *t happens to hit a leap second, the function +returns 2 instead of 1.

@@ -106,7 +107,8 @@ Converts the TAI time in *t to broken-down GMT (if *tm. The function returns 1 if it succeeds, or 0 (and sets errno) if an error occurs (for instance: *t cannot be validly represented -in a struct tm). +in a struct tm). If *t happens to hit a leap second, the +value of tm→tm_sec is 60.

-- cgit v1.2.3