Re: timestamp to int

From: Tomas Berndtsson <tomas(at)nocrew(dot)org>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: timestamp to int
Date: 2001-06-26 19:22:25
Message-ID: 80ithjoxla.fsf@junk.nocrew.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"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?

Tomas

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alex Pilosov 2001-06-26 19:24:54 Re: Returning records from function
Previous Message Thalis A. Kalfigopoulos 2001-06-26 19:12:55 Re: Large objects in web applications