[Bug 204529] struct tm documentation in time.h possibly incorrect

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Nov 13 19:44:53 UTC 2015


--- 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 the struct time be modified to
include documentation about this for tm_sec and tm_yday?

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

More information about the freebsd-bugs mailing list