* man/man3/ctime.3: Simplify by referring to tzset(3) for details about how it sets tzname etc. This simplifies a later patch, which changes tzset(3)'s description. --- man/man3/ctime.3 | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/man/man3/ctime.3 b/man/man3/ctime.3 index b8543a1cf..e863f0572 100644 --- a/man/man3/ctime.3 +++ b/man/man3/ctime.3 @@ -101,10 +101,9 @@ The abbreviations for the months are "Jan", The return value points to a statically allocated string which might be overwritten by subsequent calls to any of the date and time functions. -The function also sets the external -variables \fItzname\fP, \fItimezone\fP, and \fIdaylight\fP (see -.BR tzset (3)) -with information about the current timezone. +The function also sets the external variables \fItzname\fP, +\fItimezone\fP, and \fIdaylight\fP as if it called +.BR tzset (3). The reentrant version .BR ctime_r () does the same, but stores the @@ -131,13 +130,9 @@ The function converts the calendar time \fItimep\fP to broken-down time representation, expressed relative to the user's specified timezone. -The function acts as if it called -.BR tzset (3) -and sets the external variables \fItzname\fP with -information about the current timezone, \fItimezone\fP with the difference -between Coordinated Universal Time (UTC) and local standard time in -seconds, and \fIdaylight\fP to a nonzero value if daylight savings -time rules apply during some part of the year. +The function also sets the external variables \fItzname\fP, +\fItimezone\fP, and \fIdaylight\fP as if it called +.BR tzset (3). The return value points to a statically allocated struct which might be overwritten by subsequent calls to any of the date and time functions. The @@ -198,10 +193,9 @@ normalized (so that, for example, 40 October is changed into 9 November); is set (regardless of its initial value) to a positive value or to 0, respectively, to indicate whether DST is or is not in effect at the specified time. -Calling -.BR mktime () -also sets the external variable \fItzname\fP with -information about the current timezone. +The function also sets the external variables \fItzname\fP, +\fItimezone\fP, and \fIdaylight\fP as if it called +.BR tzset (3). .P If the specified broken-down time cannot be represented as calendar time (seconds since the Epoch), -- 2.45.2