X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 01BAF474E42 for ; Sun, 23 Feb 2003 11:37:12 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 80289-02 for ; Sun, 23 Feb 2003 11:36:59 -0500 (EST) Received: from babyruth.hotpop.com (babyruth.hotpop.com [204.57.55.14]) by postgresql.org (Postfix) with ESMTP id 924F7475D3F for ; Sun, 23 Feb 2003 11:21:33 -0500 (EST) Received: from hotpop.com (kubrick.hotpop.com [204.57.55.16]) by babyruth.hotpop.com (Postfix) with SMTP id 2C975216588 for ; Sun, 23 Feb 2003 16:21:37 +0000 (UTC) Received: from societykotla (unknown [61.0.95.120]) by smtp-2.hotpop.com (Postfix) with ESMTP id 31E821B8687 for ; Sun, 23 Feb 2003 16:21:07 +0000 (UTC) Message-ID: <001301c2db58$29f7b5e0$c9c832c0@societykotla> From: "Aspire Something" To: Subject: Date Return must be As per Natural Calander Date: Sun, 23 Feb 2003 21:52:10 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000C_01C2DB85.D14FB3B0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/360 X-Sequence-Number: 7558 This is a multi-part message in MIME format. ------=_NextPart_000_000C_01C2DB85.D14FB3B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 h= as been given that Postgresql follows the Julian calander (Which indead is= being used by my system by default )=20 So does it not mean when I add to a date (integer) it must return the=20 date as per the calendar : i.e=20 The following sql statements=20 retuns date 1752-09-03=20 insted of 1752-09-14=20 you may do : $cal 9 1752=20=20=20 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 accro= ss the same situation how will the data base respond when my database relie= s 90% on the timestamp value=20 their will be total mismatch of calendar(Which people follow) and database = returning dates. Regards , Aspire=20 My Sys Config is=20 =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=20 GCC 3.0.2 20010905=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ------=_NextPart_000_000C_01C2DB85.D14FB3B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 Hi all ,
Please Permit me to recive  ur valuable=20  knowledge and experience :-)

In the Postgresql Documentation (= read=20 it in /7.3.2/units-history.html) it has been given that Postgresql  fo= llows=20 the Julian calander (Which indead is being  used by my system by defau= lt )=20

So does it not mean when I add to a date  (integer) it must re= turn=20 the
date as per the calendar  :

i.e

The following s= ql=20 statements
retuns date  1752-09-03
insted of   1752-09-14= =20
you may do :
$cal 9 1752  
on unix promt to verify=20  (Windows user sorry ur calendar may not show dates  <1970 !!!= =20 atleat mine does not )
<code>
 select date('1752-09-02') += 1 as=20 some_date ;
 some_date
------------
 1752-09-03
(1=20 row)
 select date('1752-09-02') + interval'1 day' as=20 some_day;
     =20 some_day
---------------------
 1752-09-03 00:00:00
(1=20 row)
</code>
Now  every thing above may sound stupid but i= f we=20 in near future come accross the same situation how will the data base respo= nd=20 when my database relies 90% on the timestamp value
their will be total= =20 mismatch of calendar(Which people follow) and database returning=20 dates.

Regards ,
Aspire

My Sys Config is=20
=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=20 7.3.2
GCC 3.0.2 20010905=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

------=_NextPart_000_000C_01C2DB85.D14FB3B0--