X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0268AD8A28 for ; Thu, 8 Sep 2005 15:12:40 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 73052-03 for ; Thu, 8 Sep 2005 18:12:36 +0000 (GMT) Received: from tmcemail2.millburncorp.com (dsl027-131-025.nyc1.dsl.speakeasy.net [216.27.131.25]) by svr1.postgresql.org (Postfix) with ESMTP id 1C1C4D89DE for ; Thu, 8 Sep 2005 15:12:33 -0300 (ADT) Received: by tmcemail2.millburncorp.com (Postfix, from userid 1002) id 326F83D3D87F9; Thu, 8 Sep 2005 14:12:34 -0400 (EDT) Received: from [192.9.200.212] (hedouin.millburncorp.com [192.9.200.212]) by tmcemail2.millburncorp.com (Postfix) with ESMTP id 25FBD3D3D87F5; Thu, 8 Sep 2005 14:12:34 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7D1583CD-3DEC-4F01-BF07-6599B7AEF38B@millburncorp.com> Cc: Yasser El-Zein Content-Transfer-Encoding: 7bit From: Norman Yamada Subject: getting julian number from date in libpq Date: Thu, 8 Sep 2005 14:12:33 -0400 To: pgsql-interfaces@postgresql.org X-Mailer: Apple Mail (2.734) X-Copyrighted-Material: Please visit http://www.company.com/privacy.htm X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 required=5 tests=[FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200509/4 X-Sequence-Number: 5727 We're trying to convert dates properly for R. R stores dates internally as integers, using Unix date style -- starting date is January 1, 1970. Postgresql stores dates as Julian days, but using libpq, I don't see how to get out a date quickly as a julian day. If I use PQgetvalue, my date is automagically converted into whatever my DATESTYLE is at the time. How can I just get out the internal julian date? I could use this to convert to R dates much easier than using an ISO date format. Thanks for any help. ###################################################################### This e-mail is confidential and should not be redistributed or forwarded by the recipient. The information contained in this e-mail message is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient or you have received this communication in error, please immediately notify us by telephone. Receipt by anyone other than the intended recipient is not a waiver of any work-product or, if applicable, attorney-client privilege. This e-mail does not constitute an offering of any security. Such an offering may only be made by means of a private placement memorandum or other disclosure document. Nothing in this e-mail constitutes investment advice. Past performance is not indicative of future results. All e-mail to and from Millburn Ridgefield Corporation and its affiliates is monitored, stored and made available to regulators if requested. ######################################################################