Thread (1 message) 1 message, 1 author, 2012-03-24

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

From: Michael Kerrisk (man-pages) <hidden>
Date: 2012-03-24 03:11:17

Hello Peter,

On Fri, Nov 11, 2011 at 7:24 AM, Peter Schiffer [off-list ref] wrote:
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
Thanks. I applied your patch for man-pages-3.38.

Cheers,

Michael



-- 
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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help