X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 02E94475FBA for ; Tue, 25 Feb 2003 02:20:13 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 07275-06 for ; Tue, 25 Feb 2003 02:19:44 -0500 (EST) Received: from out004.verizon.net (out004pub.verizon.net [206.46.170.142]) by postgresql.org (Postfix) with ESMTP id 28B9A476455 for ; Mon, 24 Feb 2003 22:35:15 -0500 (EST) Received: from RavChaim ([151.202.83.145]) by out004.verizon.net (InterMail vM.5.01.05.20 201-253-122-126-120-20021101) with ESMTP id <20030225033519.BEOI2505.out004.verizon.net@RavChaim>; Mon, 24 Feb 2003 21:35:19 -0600 Content-Type: text/plain; charset="iso-8859-1" From: mlaks To: Robert Treat Subject: Its not a bug its a feature! Re: Date Return must be As per Natural Calander Date: Mon, 24 Feb 2003 22:12:22 -0500 User-Agent: KMail/1.4.1 References: <001301c2db58$29f7b5e0$c9c832c0@societykotla> <1046127599.1015.318.camel@camel> In-Reply-To: <1046127599.1015.318.camel@camel> Cc: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200302242212.22796.mlaks@bellatlantic.net> X-Authentication-Info: Submitted using SMTP AUTH at out004.verizon.net from [151.202.83.145] at Mon, 24 Feb 2003 21:35:18 -0600 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/381 X-Sequence-Number: 7579 On Monday 24 February 2003 05:59 pm, you wrote: > [rob@camel rms_db]$ cal 9 1752 > September 1752 > Su Mo Tu We Th Fr Sa > 1 2 14 15 16 > 17 18 19 20 21 22 23 > 24 25 26 27 28 29 30 > > I guess adding 1http://www.genfair.com/dates.htm day to 1752-09-02 should= =20 give us 1752-09-14, but your > right, it gives us 1752-09-03. > > Forwarding this to -bugs take a look at this website! http://www.genfair.com/dates.htm i quote::::::::: The cause of ambiguities - 1. Julian vs. Gregorian=20 Unfortunately the sixteenth century was a time of severe religious division= =20 right across Europe. States still obedient to the Papacy adopted the=20 Gregorian calendar at once, that is in October 1582. These were Spain,=20 Portugal and Italy, with France following in December of that year, and=20 Prussia, the Catholic States of Germany, Holland and Flanders on 1st Januar= y=20 1583. Catholic parts of Switzerland followed in the next two years, Poland= =20 went Gregorian in 1586 and Hungary in 1587. In the year 1700 the German and= =20 Netherland Protestant States and Denmark adopted the Gregorian calendar.=20 Sweden wavered, keeping the Gregorian non-leap year of 1700 but reverting= =20 back in 1712 by having two leap days that year. The Swedes finally settled= =20 for the Gregorian calendar in 1753 omitting the eleven days from 18th to th= e=20 end of February of that year.=20 In Britain the Gregorian calendar was not adopted until 1752, and the start= of=20 year date was changed to 1st January by the same Act of Parliament. The day= =20 following 31st December 1751 was decreed to be 1st January 1752 and 2nd=20 September 1752 was followed by 14th September. As England had taken the yea= r=20 1700 to be a leap year, the difference between the Julian and Gregorian=20 calendars now amounted to eleven days. The changes were to apply to all the= =20 Dominions of the British Crown, including of course the North American=20 colonies, and will be the ones most of interest to family historians readin= g=20 this article.=20 > > > Robert Treat > > On Sun, 2003-02-23 at 11:22, Aspire Something wrote: > > Hi all , > > Please Permit me to recive ur valuable knowledge and experience :-) > > > > In the Postgresql Documentation (read it in /7.3.2/units-history.html) > > it has been given that Postgresql follows the Julian calander (Which > > indead is being used by my system by default ) > > > > So does it not mean when I add to a date (integer) it must return the > > date as per the calendar : > > > > i.e > > > > The following sql statements > > retuns date 1752-09-03 > > insted of 1752-09-14 > > you may do : > > $cal 9 1752 > > on unix promt to verify (Windows user sorry ur calendar may not show > > dates <1970 !!! atleat mine does not ) > > > > select date('1752-09-02') + 1 as some_date ; > > some_date > > ------------ > > 1752-09-03 > > (1 row) > > select date('1752-09-02') + interval'1 day' as some_day; > > some_day > > --------------------- > > 1752-09-03 00:00:00 > > (1 row) > > > > Now every thing above may sound stupid but if we in near future come > > accross the same situation how will the data base respond when my > > database relies 90% on the timestamp value > > their will be total mismatch of calendar(Which people follow) and > > database returning dates. > > > > Regards , > > Aspire > > > > My Sys Config is > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Red Hate 7.2 Kernel 2.4.7-10 on an i686 > > Postgresql 7.3.2 > > GCC 3.0.2 20010905 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html