From: Marc Wrubleski <mlwruble@sorexsoftware.com>
To: pgsql-admin@postgresql.org
Subject: Strange behavior with timestamps
Date: Thu, 08 Mar 2001 13:19:35 -0700
Message-ID: <3AA7E957.A1F9675@sorexsoftware.com> (raw)
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)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mlwruble@sorexsoftware.com
Subject: Re: Strange behavior with timestamps
In-Reply-To: <3AA7E957.A1F9675@sorexsoftware.com>
References: <3AA7E957.A1F9675@sorexsoftware.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox