Re: Re: First Saturday and Last Saturday of a month - Mailing list pgsql-general

From Alex Page
Subject Re: Re: First Saturday and Last Saturday of a month
Date
Msg-id 045f01c120e9$227a6540$7fc472c1@solidstatelogic.com
Whole thread Raw
In response to First Saturday and Last Saturday of a month  ("Brian C. Doyle" <bcdoyle@mindspring.com>)
Responses Re: Re: First Saturday and Last Saturday of a month  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-general
From: "Allan Engelhardt" <allane@cybaea.com>
To: "Brian C. Doyle" <bcdoyle@mindspring.com>;
<pgsql-general@postgresql.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.page@solid-state-logic.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
**********************************************************************

pgsql-general by date:

Previous
From: Justin Clift
Date:
Subject: Re: An unfair comparision....
Next
From: "dado feigenblatt"
Date:
Subject: webware