Skip to contentSkip to conversation

tzset.3: fix description of "n" format

PATCH In review Peter Schiffer 2 participants 3 messages Nov 10, 2011 – Mar 24, 2012 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

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
diff -up man-pages-3.35/man3/tzset.3.tmp man-pages-3.35/man3/tzset.3
@@ -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]

#2 lore raw

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

[1] http://www.gnu.org/s/hello/manual/libc/TZ-Variable.html

--
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

#3 lore raw
In reply to a message not in the archive

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

[1] http://www.gnu.org/s/hello/manual/libc/TZ-Variable.html

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