Summary: | struct tm documentation in time.h possibly incorrect | ||
---|---|---|---|
Product: | Base System | Reporter: | Michael Cress <michael.cress> |
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Closed DUPLICATE | ||
Severity: | Affects Only Me | CC: | felix.the.red, michael.cress |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Michael Cress
2015-11-13 19:32:20 UTC
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? *** This bug has been marked as a duplicate of bug 204530 *** |