NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/56419: duplicate 'tm_isdst' in ctime(3)
>Number: 56419
>Category: misc
>Synopsis: ctime(3) lists 'tm_isdst' twice
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 28 03:10:00 +0000 2021
>Originator: Jan Schaumann
>Release: NetBSD 9.2
>Organization:
>Environment:
>Description:
The manual page for ctime(3) lists the 'tm_isdst' field twice:
Declarations of all the functions and externals, and the tm structure,
are in the <time.h> header file. The structure (of type) struct tm
includes the following fields:
[...]
int tm_yday; /* day of year (0 - 365) */
int tm_isdst; /* is summer time in effect? */
int tm_isdst; /* is daylight saving time in effect? */
char *tm_zone; /* abbreviation of timezone name (optional) */
>How-To-Repeat:
man ctime
>Fix:
--- ctime.3.orig 2021-09-27 23:42:57.905264572 +0000
+++ ctime.3 2021-09-27 23:43:30.179095280 +0000
@@ -333,8 +333,7 @@
int tm_year; /* year - 1900 */
int tm_wday; /* day of week (Sunday = 0) */
int tm_yday; /* day of year (0 - 365) */
- int tm_isdst; /* is summer time in effect? */
- int tm_isdst; /* is daylight saving time in effect? */
+ int tm_isdst; /* is daylight saving time in effect? */
char *tm_zone; /* abbreviation of timezone name (optional) */
long tm_gmtoff; /* offset from UT in seconds (optional) */
.Ed
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index