X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 796C056385 for ; Wed, 2 Mar 2005 16:26:13 +0000 (GMT) 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 14720-09 for ; Wed, 2 Mar 2005 16:26:08 +0000 (GMT) Received: from mail1.elevating.com (wsip-68-99-77-237.tu.ok.cox.net [68.99.77.237]) by svr1.postgresql.org (Postfix) with ESMTP id 5533952A5D for ; Wed, 2 Mar 2005 16:26:07 +0000 (GMT) Received: from bretsony.brets.elevating.com (bretsony.brets.elevating.com [10.23.0.139]) by mail1.elevating.com (8.11.6/8.11.6) with ESMTP id j22GPIK11883 for ; Wed, 2 Mar 2005 10:25:19 -0600 Subject: definative way to place secs from epoc into timestamp column From: Bret Hughes To: postgresql sql list Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-9.7x.1) Date: 02 Mar 2005 10:25:17 -0600 Message-Id: <1109780719.28180.86.camel@bretsony> Mime-Version: 1.0 X-Elevating-MailScanner: Found to be clean X-Elevating-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.5, required 5, BAYES_00 -1.50) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200503/23 X-Sequence-Number: 20502 I give up. I have STFW and STFM and still do not feel like I have a good way to update/insert into a timestamp w/o TZ column with an integer representing seconds from epoch. I am adding functionality to a php app that does a fair amount of work with time and am currently using abstime($timestamp). $timestamp is a php timestamp. I found this on the web somewhere since I find no reference to a function abstime. There is significant hits relating to abstime in the docs but it all seems to refer to an internal data type of low res time data. Help. I would really like to do this in the most efficient way possible but would like it be not likely to break in future releases. Bret