From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bret Hughes <bhughes@elevating.com>
Cc: postgresql sql list <pgsql-sql@postgresql.org>
Subject: Re: definative way to place secs from epoc into timestamp
Date: Wed, 02 Mar 2005 15:26:26 -0500
Message-ID: <13466.1109795186@sss.pgh.pa.us> (raw)
In-Reply-To: <1109794066.27857.100.camel@bretsony>
References: <1109780719.28180.86.camel@bretsony>
<13089.1109793126@sss.pgh.pa.us>
<1109794066.27857.100.camel@bretsony>
Bret Hughes <bhughes@elevating.com> writes:
> Thanks for the feed back tom I say that but I could not believe that I
> have to jump through all those hoops on an insert or update
> update mytable set (lasttime =(SELECT TIMESTAMP WITH TIME ZONE 'epoch' +
> 982384720 * INTERVAL '1 second') )
> is this what you are saying I need to do?
You can make a function that embodies whichever semantics you want.
> also, what is happening with abstime(982384720)? this works as expected
> (by me ). Is this a bad idea?
It won't be there forever.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, bhughes@elevating.com
Subject: Re: definative way to place secs from epoc into timestamp
In-Reply-To: <13466.1109795186@sss.pgh.pa.us>
* 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