Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/time As per C99 the range of values for the %S form...



details:   https://anonhg.NetBSD.org/src/rev/9f89f9159879
branches:  trunk
changeset: 819937:9f89f9159879
user:      abhinav <abhinav%NetBSD.org@localhost>
date:      Sat Dec 24 05:33:51 2016 +0000

description:
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."

diffstat:

 lib/libc/time/strftime.3 |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r cd8fa4ef4900 -r 9f89f9159879 lib/libc/time/strftime.3
--- a/lib/libc/time/strftime.3  Fri Dec 23 23:17:57 2016 +0000
+++ b/lib/libc/time/strftime.3  Sat Dec 24 05:33:51 2016 +0000
@@ -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 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 ) .



Home | Main Index | Thread Index | Old Index