[Bug 204530] man 3 gmtime - struct tm documentation possibly incorrect

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Nov 13 19:45:36 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204530

--- Comment #1 from Michael Cress <michael.cress at cress.us> ---
Looking at time.h on Linux, I see

struct tm
{
  int tm_sec;                   /* Seconds.     [0-60] (1 leap second) */
.
.
.
  int tm_yday;                  /* Days in year.[0-365] */
.
.
}

So, it seems the 0-60 range is due to a leap second. I am assuming that the
0-365 range is due to leap year range also. Can notation regarding this be
added to the gmtime man page to clarify this issue?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-doc mailing list