[patch] tzset.3: fix description of "n" format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
diff -up man-pages-3.35/man3/tzset.3.tmp man-pages-3.35/man3/tzset.3
--- man-pages-3.35/man3/tzset.3.tmp	2011-10-04 08:34:45.000000000 +0200
+++ man-pages-3.35/man3/tzset.3	2011-11-10 18:47:07.868969045 +0100
@@ -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

[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux