All of lore.kernel.org
 help / color / mirror / Atom feed
* error in NOTES section in time(2)
@ 2011-05-10 18:17 Alexander Schuch
       [not found] ` <20110510181713.165010-hi6Y0CQ0nG0@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Schuch @ 2011-05-10 18:17 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-15 18:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-10 18:17 error in NOTES section in time(2) Alexander Schuch
     [not found] ` <20110510181713.165010-hi6Y0CQ0nG0@public.gmane.org>
2011-09-15 18:39   ` Michael Kerrisk

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.