| From: | "Mitch Vincent" <mvincent(at)cablespeed(dot)com> |
|---|---|
| To: | "Edwin Grubbs" <egrubbs(at)rackspace(dot)com>, <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: timestamp to int |
| Date: | 2001-06-26 15:58:23 |
| Message-ID: | 009101c0fe58$d46e00d0$1251000a@Mitch |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
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.
-Mitch
----- Original Message -----
From: "Edwin Grubbs" <egrubbs(at)rackspace(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Sent: Tuesday, June 26, 2001 11:16 AM
Subject: [GENERAL] timestamp to int
> Is there any function for converting a timestamp into an integer with the
> unix seconds value? It's really easy to convert in the other direction.
>
> -Edwin
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bryan White | 2001-06-26 16:10:11 | Re: More Red Hat information |
| Previous Message | wsheldah | 2001-06-26 15:57:55 | Re: More Red Hat information |