* [patch] tzset.3: fix description of "n" format
@ 2011-11-10 18:24 Peter Schiffer
[not found] ` <4EBC16EC.30905-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Peter Schiffer @ 2011-11-10 18:24 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 772 bytes --]
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
[-- Attachment #2: tzset.patch --]
[-- Type: text/plain, Size: 527 bytes --]
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch] tzset.3: fix description of "n" format
[not found] ` <4EBC16EC.30905-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2012-03-14 14:29 ` Peter Schiffer
2012-03-24 3:11 ` Michael Kerrisk (man-pages)
1 sibling, 0 replies; 3+ messages in thread
From: Peter Schiffer @ 2012-03-14 14:29 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Hello,
could somebody look at this? Patch was attached in previous email, only
review is needed.
Thanks,
peter
On 11/10/2011 07:24 PM, Peter Schiffer 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
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch] tzset.3: fix description of "n" format
[not found] ` <4EBC16EC.30905-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-03-14 14:29 ` Peter Schiffer
@ 2012-03-24 3:11 ` Michael Kerrisk (man-pages)
1 sibling, 0 replies; 3+ messages in thread
From: Michael Kerrisk (man-pages) @ 2012-03-24 3:11 UTC (permalink / raw)
To: Peter Schiffer; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Hello Peter,
On Fri, Nov 11, 2011 at 7:24 AM, Peter Schiffer <pschiffe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-24 3:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-10 18:24 [patch] tzset.3: fix description of "n" format Peter Schiffer
[not found] ` <4EBC16EC.30905-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-03-14 14:29 ` Peter Schiffer
2012-03-24 3:11 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).