Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unix.tm_sec documentation error #3341

Closed
vicuna opened this issue Dec 6, 2004 · 2 comments
Closed

Unix.tm_sec documentation error #3341

vicuna opened this issue Dec 6, 2004 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Dec 6, 2004

Original bug ID: 3341
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Richard W.M. Jones
Version: 3.08.1
OS: Linux
Submission from: annexia.force9.co.uk (212.56.101.183)

The documentation for Unix.tm is wrong, because presumably the
tm_sec (seconds) field can be in the range 0..61 (accounting for
leap seconds). Currently it is documented as:

type tm =
{ tm_sec : int; (** Seconds 0..59 *)

But the Linux manpage for localtime(3) documents:

tm_sec The number of seconds after the minute, normally in the range 0
to 59, but can be up to 61 to allow for leap seconds.

@vicuna
Copy link
Author

vicuna commented Dec 9, 2004

Comment author: administrator

Full_Name: Richard W.M. Jones
Version: 3.08.1

The documentation for Unix.tm is wrong, because presumably the
tm_sec (seconds) field can be in the range 0..61 (accounting for
leap seconds). Currently it is documented as:

type tm =
{ tm_sec : int; (** Seconds 0..59 *)

But the Linux manpage for localtime(3) documents:

tm_sec The number of seconds after the minute, normally in the range 0
to 59, but can be up to 61 to allow for leap seconds.

Thanks for the bug report. Note that there is also a bug in the Linux manpage:
the number of seconds can be up to 60, not 61, as leap seconds are only
added one at a time.

This will be fixed in the next release.

-- Damien

@vicuna
Copy link
Author

vicuna commented Dec 22, 2004

Comment author: administrator

fixed 2004-12-22 DD

@vicuna vicuna closed this as completed Dec 22, 2004
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant