Module Name: src Committed By: abhinav Date: Sat Dec 24 05:33:51 UTC 2016
Modified Files: src/lib/libc/time: strftime.3 Log Message: As per C99 the range of values for the %S format specifier is [0,60] rather than [0,61]. The standard has removed mention of double leap seconds. The standard has give the following rationale in the time.h man page: "The range [0,60] seconds allows for positive or negative leap seconds. The formal definition of UTC does not permit double leap seconds, so all mention of double leap seconds has been removed, and the range shortened from the former [0,61] seconds seen in previous versions of POSIX." To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/lib/libc/time/strftime.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/time/strftime.3 diff -u src/lib/libc/time/strftime.3:1.31 src/lib/libc/time/strftime.3:1.32 --- src/lib/libc/time/strftime.3:1.31 Thu Sep 22 23:18:10 2016 +++ src/lib/libc/time/strftime.3 Sat Dec 24 05:33:51 2016 @@ -30,9 +30,9 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)strftime.3 5.12 (Berkeley) 6/29/91 -.\" $NetBSD: strftime.3,v 1.31 2016/09/22 23:18:10 pgoyette Exp $ +.\" $NetBSD: strftime.3,v 1.32 2016/12/24 05:33:51 abhinav Exp $ .\" -.Dd September 22, 2016 +.Dd December 21, 2016 .Dt STRFTIME 3 .Os .Sh NAME @@ -144,10 +144,10 @@ is replaced by the time in the format is replaced by the locale's representation of 12-hour clock time using AM/PM notation. .It Cm \&%S -is replaced by the second as a decimal number [00,61]. +is replaced by the second as a decimal number [00,60]. The range of -seconds is (00-61) instead of (00-59) to allow for the periodic occurrence -of leap seconds and double leap seconds. +seconds is (00-60) instead of (00-59) to allow for the periodic occurrence +of leap seconds. .It Cm %s is replaced by the number of seconds since the Epoch (see .Xr ctime 3 ) .