From: | "Alex Page" <alex(dot)page(at)solid-state-logic(dot)com> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Re: First Saturday and Last Saturday of a month |
Date: | 2001-08-09 15:37:01 |
Message-ID: | 045f01c120e9$227a6540$7fc472c1@solidstatelogic.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
From: "Allan Engelhardt" <allane(at)cybaea(dot)com>
To: "Brian C. Doyle" <bcdoyle(at)mindspring(dot)com>;
<pgsql-general(at)postgresql(dot)org>
Sent: Wednesday, August 08, 2001 11:18 PM
Subject: [GENERAL] Re: First Saturday and Last Saturday of a month
> You *do* know the algorithm for testing if year yyyy is a leap year, don't
you?
> ((yyyy%4) && !(yyyy%400))
ITYM ((yyyy%4) && ( !(yyyy%400) || (yyyy%1000) ) - year 2000 was a leap
year, even though it was a multiple of 400, because it was a millenium.
Alex
--
Alex Page, IT Department, Solid State Logic
E-Mail: alex(dot)page(at)solid-state-logic(dot)com
Phone: +44 (0) 1865 842 300
Web: http://www.solid-state-logic.com
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
From | Date | Subject | |
---|---|---|---|
Next Message | dado feigenblatt | 2001-08-09 16:09:18 | webware |
Previous Message | Peter Eisentraut | 2001-08-09 15:35:13 | Re: Random strings |