Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Feb 2000 04:57:07 +0000 (GMT)
From:      Stephen Roome <steve@visint.co.uk>
To:        "Jonathan M. Bresler" <jmb@FreeBSD.ORG>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: 2000 Compliance / dates / time libs
Message-ID:  <Pine.BSF.3.95.1000229045221.14383D-100000@dylan.visint.co.uk>
In-Reply-To: <199710271629.IAA00243@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 27 Oct 1997, Jonathan M. Bresler wrote:

> Stephen Roome wrote:
> > 
> > 
> > I just set my clock to february 29 2000. Is this valid ?
> 
> 	the algorithm, as i understand it is:
> 
> 	if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0))
> 		it is a leap year.
> 
> 	this is only good back till the switch from julian to gregorian
> 	calendars.

[You stole this from k&r didn't you =), well, that's the only place I
remember seeing this, especially in this format in C.]

But anyway, that was my assumption as well, but I've heard otherwise and
ensuring that FreeBSD gets the leap/non-leap year bit of 2000 correct is
probably quite important.

So when (or if) does the julian/gregorian switch take place and have you
got any hints where I should "point my browser and surf to", or perhaps a
slightly reliable source of information such as a book.

I've heard (I don't trust this source though!) that there maybe an ISO
committee for this. 

	Steve.

Steve Roome - Vision Interactive Ltd.
Tel:+44(0)117 9730597 Home:+44(0)976 241342
WWW: http://dylan.visint.co.uk/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.1000229045221.14383D-100000>