Re: biginteger to timestamp - Mailing list pgsql-admin

From Peter Eisentraut
Subject Re: biginteger to timestamp
Date
Msg-id 200607201132.31207.peter_e@gmx.net
Whole thread Raw
In response to biginteger to timestamp  (LiveShell <liveshell@gmail.com>)
List pgsql-admin
Am Donnerstag, 20. Juli 2006 11:26 schrieb LiveShell:
>          I want to convert biginteger and integer data type to timestamp
> data type.

That depends mostly on what kind of meaning you intend to attach to an integer
N.   If you want seconds since 1970, you could do

x * interval '1 second' + timestamp '1970-01-01'

For other meanings, adjust as necessary.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-admin by date:

Previous
From: LiveShell
Date:
Subject: biginteger to timestamp
Next
From: "hubert depesz lubaczewski"
Date:
Subject: Re: biginteger to timestamp