Date: Thu, 11 Jul 1996 15:38:49 +1000 From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs@freefall.freebsd.org, sjr@zombie.ncsc.mil Subject: Re: misc/1380: Year 2000 breakage with tm_year Message-ID: <199607110538.PAA13520@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
> > Isn't there a TM_YEAR_BASE symbol defined somewhere that should > > be used instead of a hardcoded 1900? > > When I submitted my original changes to NetBSD, I used that symbol; > however, according to "J.T. Conklin <jtc@NetBSD.ORG>" the definition > of the tm_year field is "years since 1900" according to Standard C. > [and not years since TM_YEAR_BASE] Right. TM_YEAR_BASE is private to the FreeBSD (Olsen) implementation of Standard C time stuff. It is defined in the private header tzfile.h. An old version of tzfile.h was erroneously turned into a standard header and used in various utilities in 4.4Lite, but it was removed in FreeBSD a year or so ago. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607110538.PAA13520>