Module Name: src Committed By: jschauma Date: Sun Oct 23 15:43:40 UTC 2022
Modified Files: src/include: time.h src/share/man/man3: tm.3 Log Message: correct tm_sec range to be [0-60] The previous range introduced in time.h rev1.14 was supposed to account for a mystical "double leap second", which ultimately never could exist and was a mistaken interpretation from an early ISO C standard whereby the possibility of two leap seconds within a year was erroneously interpreted to mean that two leap seconds could occur at once. To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/include/time.h cvs rdiff -u -r1.4 -r1.5 src/share/man/man3/tm.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/include/time.h diff -u src/include/time.h:1.47 src/include/time.h:1.48 --- src/include/time.h:1.47 Tue Oct 4 09:41:41 2016 +++ src/include/time.h Sun Oct 23 15:43:40 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: time.h,v 1.47 2016/10/04 09:41:41 kamil Exp $ */ +/* $NetBSD: time.h,v 1.48 2022/10/23 15:43:40 jschauma Exp $ */ /* * Copyright (c) 1989, 1993 @@ -73,7 +73,7 @@ typedef _BSD_TIMER_T_ timer_t; #define CLOCKS_PER_SEC 100 struct tm { - int tm_sec; /* seconds after the minute [0-61] */ + int tm_sec; /* seconds after the minute [0-60] */ int tm_min; /* minutes after the hour [0-59] */ int tm_hour; /* hours since midnight [0-23] */ int tm_mday; /* day of the month [1-31] */ Index: src/share/man/man3/tm.3 diff -u src/share/man/man3/tm.3:1.4 src/share/man/man3/tm.3:1.5 --- src/share/man/man3/tm.3:1.4 Thu Apr 14 05:45:34 2011 +++ src/share/man/man3/tm.3 Sun Oct 23 15:43:40 2022 @@ -1,4 +1,4 @@ -.\" $NetBSD: tm.3,v 1.4 2011/04/14 05:45:34 jruoho Exp $ +.\" $NetBSD: tm.3,v 1.5 2022/10/23 15:43:40 jschauma Exp $ .\" .\" Copyright (c) 2011 Jukka Ruohonen <jruoho...@iki.fi> .\" All rights reserved. @@ -42,7 +42,7 @@ The following standards-compliant fields .Bl -column -offset indent \ "Type" "Field " "Months since January 1 " "Range " .It Sy Type Ta Sy Field Ta Sy Represents Ta Sy Range -.It Vt int Ta Va tm_sec Ta Seconds Ta [0, 61] +.It Vt int Ta Va tm_sec Ta Seconds Ta [0, 60] .It Vt int Ta Va tm_min Ta Minutes Ta [0, 59] .It Vt int Ta Va tm_hour Ta Hours since midnight Ta [0, 23] .It Vt int Ta Va tm_mday Ta Day of the month Ta [1, 31]