Date: Tue, 28 Oct 1997 00:44:01 +0000 From: Brian Somers <brian@awfulhak.org> To: Stephen Roome <steve@visint.co.uk> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: 2000 Compliance / dates / time libs Message-ID: <199710280044.AAA16317@awfulhak.demon.co.uk> In-Reply-To: Your message of "Tue, 29 Feb 2000 00:13:57 GMT." <Pine.BSF.3.95.1000229000941.14077A-100000@dylan.visint.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
>
> I just set my clock to february 29 2000. Is this valid ?
The rule is:
if (year%400)
leap year
else if (year%100)
no leap year
else if (year%4)
leap year
else
no leap year
The whole mess only works up 'till the year 23XX AFAIR, then we have
to skip a big chunk of time - and the UK will probably refuse again
:-O
$ cal 9 1752 for a laugh, then read
ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/src/usr.bin/cal/README
--
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <bri@OpenBSD.org>
<http://www.Awfulhak.org>
Don't _EVER_ lose your sense of humour....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710280044.AAA16317>
