Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Nov 2015 19:45:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-doc@FreeBSD.org
Subject:   [Bug 204530] man 3 gmtime - struct tm documentation possibly incorrect
Message-ID:  <bug-204530-9-ZpymYITfw3@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-204530-9@https.bugs.freebsd.org/bugzilla/>
References:  <bug-204530-9@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204530

--- Comment #1 from Michael Cress <michael.cress@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204530-9-ZpymYITfw3>