Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f2CKYRx64810 for ; Mon, 12 Mar 2001 15:34:27 -0500 (EST) (envelope-from pgsql-admin-owner@postgresql.org) Received: from msfs.math.ucalgary.ca (msfs.math.ucalgary.ca [136.159.61.8]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f28KI3x31867 for ; Thu, 8 Mar 2001 15:18:04 -0500 (EST) (envelope-from mlwruble@sorexsoftware.com) Received: from sorexsoftware.com (h24-65-238-245.cg.shawcable.net [24.65.238.245]) by msfs.math.ucalgary.ca (8.9.3/8.9.3) with ESMTP id NAA23084 for ; Thu, 8 Mar 2001 13:17:58 -0700 (MST) Message-ID: <3AA7E957.A1F9675@sorexsoftware.com> Date: Thu, 08 Mar 2001 13:19:35 -0700 From: Marc Wrubleski X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Strange behavior with timestamps Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200103/83 X-Sequence-Number: 929 Hi all, I am witnessing something strange with my timestamps here and I am desperately hoping someone can explain or assist. If I set a time using unix timestamp, it is recalled as a different time a week different! The following example is for illustration purposes: pulver=# select version(); version ------------------------------------------------------------- PostgreSQL 7.0.3 on i686-pc-linux-gnu, compiled by gcc 2.96 pulver=# update connections set starttime = timestamp 'epoch' + reltime '984685319'; UPDATE 1 pulver=# select date_part('epoch', starttime) from connections; date_part ----------- 985290119 (1 row)