Re: timestamp to int

From: will trillich <will(at)serensoft(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: timestamp to int
Date: 2001-06-29 17:43:19
Message-ID: 20010629124319.G2985@serensoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jun 26, 2001 at 09:22:25PM +0200, Tomas Berndtsson wrote:
> "Mitch Vincent" <mvincent(at)cablespeed(dot)com> writes:
>
> > SELECT EXTRACT(EPOCH FROM TIMESTAMP '2001-02-16 20:38:40');
> >
> > -- and you can replace the timestamp string with the name of a timestamp
> > column.
> >
> > The above is in the manual, BTW.
>
> Is there a way to do it the other way around, from an integer to a
> timestamp?

of course not. don't be silly.

certainly not date_part or to_char or to_date. they're not
mentioned in the docs, either, so don't bother looking.
(think of the time you'll save.)

in particular, on my debian system, you wouldn't look in
/usr/share/doc/postgresql-doc/html/postgres/postgres.htm
and you wouldn't do

cd /usr/share/doc/postgresql-doc/html/postgres
grep -i epoch *

that would be bad.

--
I'd concentrate on "living in the now" because it is fun
and on building a better world because it is possible.
- Tod Steward

will(at)serensoft(dot)com
http://sourceforge.net/projects/newbiedoc -- we need your brain!
http://www.dontUthink.com/ -- your brain needs us!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-06-29 18:01:41 Re: Plain text vs HTML mail
Previous Message Jan Wieck 2001-06-29 17:33:11 Re: