All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alexander Schuch" <Alex.Schuch-Mmb7MZpHnFY@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: error in NOTES section in time(2)
Date: Tue, 10 May 2011 20:17:13 +0200	[thread overview]
Message-ID: <20110510181713.165010@gmx.net> (raw)

Hello,

The NOTES section of time(2) <http://www.kernel.org/doc/man-pages/online/pages/man2/time.2.html> says the following:

"POSIX.1 defines seconds since the Epoch as a value to be interpreted as the number of seconds between a specified time and the Epoch, according to a formula for conversion from UTC equivalent to conversion on the naive basis that leap seconds are ignored and all years divisible by 4 are leap years."

I have neither read nor checked the POSIX specification, but there is an oddity in the statement, because "Years that are evenly divisible by 100 are not leap years, unless they are also evenly divisible by 400, in which case they are leap years." - http://en.wikipedia.org/wiki/Leap_year and cited sources.

So if POSIX really says that an average year has 365.25 days, a note should be added to the manual saying that POSIX differs from the Gregorian calendar. If, however, an average year has 365.2425 days according to POSIX, the line in time(2) should be updated to reflect that.

Regards,
Alexander Schuch
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
--
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

             reply	other threads:[~2011-05-10 18:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-10 18:17 Alexander Schuch [this message]
     [not found] ` <20110510181713.165010-hi6Y0CQ0nG0@public.gmane.org>
2011-09-15 18:39   ` error in NOTES section in time(2) Michael Kerrisk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110510181713.165010@gmx.net \
    --to=alex.schuch-mmb7mzphnfy@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.