From owner-freebsd-questions Mon Oct 27 08:29:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA00250 for questions-outgoing; Mon, 27 Oct 1997 08:29:49 -0800 (PST) (envelope-from owner-freebsd-questions) Received: (from jmb@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA00243; Mon, 27 Oct 1997 08:29:39 -0800 (PST) (envelope-from jmb) From: "Jonathan M. Bresler" Message-Id: <199710271629.IAA00243@hub.freebsd.org> Subject: Re: 2000 Compliance / dates / time libs To: steve@visint.co.uk (Stephen Roome) Date: Mon, 27 Oct 1997 08:29:38 -0800 (PST) Cc: freebsd-questions@freebsd.org In-Reply-To: from "Stephen Roome" at Feb 29, 0 00:13:57 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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. jmb