From: Marc Wrubleski <mlwruble@sorexsoftware.com>
To: pgsql-admin@postgresql.org
Subject: Strange behavior with timestamps cont.
Date: Thu, 08 Mar 2001 13:57:56 -0700
Message-ID: <3AA7F254.153CCEF9@sorexsoftware.com> (raw)
References: <200103082018.f28KIFx32685@mail.postgresql.org>
Even more strange to me is this one below:
pulver=# select date_part('epoch', timestamp 'epoch' + reltime '98529111
seconds');
date_part
-----------
98701911
(1 row)
>
>
>
> ------------------------------------------------------------------------
>
> Subject: Strange behavior with timestamps
> Date: Thu, 08 Mar 2001 13:19:35 -0700
> From: Marc Wrubleski <mlwruble@sorexsoftware.com>
> To: pgsql-admin@postgresql.org
>
> 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 cont.
In-Reply-To: <3AA7F254.153CCEF9@sorexsoftware.com>
References: <200103082018.f28KIFx32685@mail.postgresql.org> <3AA7F254.153CCEF9@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