tzset.3: fix description of "n" format
PATCH 1/1 tzset.3: fix description of "n" format
Hello,
according to [1], description of start/end format of TZ variable says:
...
Jn
This specifies the Julian day, with n between 1 and 365. February 29 is never counted, even in leap years. n
This specifies the Julian day, with n between 0 and 365. February 29 is counted in leap years.
...
This is correct and works. However, man page tzset(3) says:
...
Jn This specifies the Julian day with n between 1 and 365. Febru‐ ary 29 is never counted even in leap years.
n This specifies the Julian day with n between 1 and 365. Febru‐ ary 29 is counted in leap years.
...
For "n" format, interval should be "between 0 and 365". Attached patch is solving this issue.
Version of man pages: 3.35
peter
[1] http://www.gnu.org/s/hello/manual/libc/TZ-Variable.html
man3/tzset.3 renamed from man3/tzset.3.tmp +1 -1
@@ -134,7 +134,7 @@ This specifies the Julian day with \fIn\ February 29 is never counted even in leap years. .TP .I n -This specifies the Julian day with \fIn\fP between 1 and 365. +This specifies the Julian day with \fIn\fP between 0 and 365. February 29 is counted in leap years. .TP M\fIm\fP.\fIw\fP.\fId\fP
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello,
could somebody look at this? Patch was attached in previous email, only review is needed.
Thanks,
peter
Quoted 21 lines · Peter Schiffer
Hello,
according to [1], description of start/end format of TZ variable says:
...
Jn
This specifies the Julian day, with n between 1 and 365. February 29 is never counted, even in leap years. n
This specifies the Julian day, with n between 0 and 365. February 29 is counted in leap years.
...This is correct and works. However, man page tzset(3) says:
...
Jn This specifies the Julian day with n between 1 and 365. Febru‐ ary 29 is never counted even in leap years.n This specifies the Julian day with n between 1 and 365. Febru‐ ary 29 is counted in leap years.
...For "n" format, interval should be "between 0 and 365". Attached patch is solving this issue.
Quoted 7 lines
Version of man pages: 3.35
peter
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hello Peter,
Quoted 24 lines · Peter Schiffer
Hello,
according to [1], description of start/end format of TZ variable says:
...
Jn
This specifies the Julian day, with n between 1 and 365. February 29 is never counted, even in leap years.
n
This specifies the Julian day, with n between 0 and 365. February 29 is counted in leap years.
...This is correct and works. However, man page tzset(3) says:
...
Jn This specifies the Julian day with n between 1 and 365. Febru‐ ary 29 is never counted even in leap years.n This specifies the Julian day with n between 1 and 365. Febru‐ ary 29 is counted in leap years.
...For "n" format, interval should be "between 0 and 365". Attached patch is solving this issue.
Quoted 7 lines
Version of man pages: 3.35
peter
Thanks. I applied your patch for man-pages-3.38.
Cheers,
Michael
Signature · 7 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html