Re: Strange behavior with timestamps

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marc Wrubleski <mlwruble(at)sorexsoftware(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Strange behavior with timestamps
Date: 2001-03-12 22:53:24
Message-ID: 7088.984437604@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Marc Wrubleski <mlwruble(at)sorexsoftware(dot)com> writes:
> pulver=# update connections set starttime = timestamp 'epoch' + reltime
> '984685319';

That calculation does not do what you seem to think it does. (Hint:
reltime is not simply a number of seconds.)

Try just timestamp(984685319) instead.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Peter Schuller 2001-03-12 23:01:59 Authentication by password
Previous Message Stephan Szabo 2001-03-12 22:25:24 Re: Use of the LIMIT clause ?