diff options
| author | jschauma <jschauma@NetBSD.org> | 2022-10-23 15:43:40 +0000 |
|---|---|---|
| committer | jschauma <jschauma@NetBSD.org> | 2022-10-23 15:43:40 +0000 |
| commit | 04296fc946250c6cfbc7ed7da647f7ac5d268265 (patch) | |
| tree | e6d37a76e003d8897d8370a93f56847ed3f36af1 /include | |
| parent | 4362a689c7f230365739001cc5dd521b35778e74 (diff) | |
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.
Diffstat (limited to 'include')
| -rw-r--r-- | include/time.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/time.h b/include/time.h index f870ebf5750..b4ad727f1c8 100644 --- a/include/time.h +++ b/include/time.h @@ -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] */ |
