Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jan 2000 07:35:14 -0500 (EST)
From:      Thomas David Rivers <rivers@dignus.com>
To:        freebsd-bugs@FreeBSD.ORG, teos2000@mail.ru
Subject:   Re: Y2K bug
Message-ID:  <200001221235.HAA77849@lakes.dignus.com>
In-Reply-To: <000801bf64d2$ecc35fc0$0ab4dec3@blackeagle>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> The function localtime returns incorrect date.
> 
> For example: 0-21-100.
> 
> What to me to do?
> 

 You're supposed to add 1900 to the year.

 100 + 1900 = 2000  

 See the localtime man page for more information about the `tm' structure.

	- Dave Rivers -


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001221235.HAA77849>