Re: Converting POSTGRESQL timestamp to UNIX timestamp

Поиск
Список
Период
Сортировка
От Grant
Тема Re: Converting POSTGRESQL timestamp to UNIX timestamp
Дата
Msg-id Pine.LNX.4.21.0103261011080.29634-100000@webster.conprojan.com.au
обсуждение исходный текст
Ответ на Converting POSTGRESQL timestamp to UNIX timestamp  (Richie <dugganr@student.cs.ucc.ie>)
Список pgsql-php
select date_part('epoch', timestamp(topics.date_added)) from table;

On Thu, 22 Mar 2001, Richie wrote:

> Hi
>
> I have a field of type timestamp in my database but when I retrieve it I
> want to convert it to its unix timetamp value because I need to compare 2
> tables by their timestamp value.
>
> Any ideas how to convert PostgreSQL timestamp to Unix timestamp???
>
> Thanks
>
> Richie
>
> =========================================================
> Richie Duggan
> Computer Science IV
> University College Cork
> Eamil : dugganr@student.cs.ucc.ie   richie_dug@yahoo.com
> Homepage : http://student.cs.ucc.ie/01/dugganr/index.html
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster




В списке pgsql-php по дате отправления:

Предыдущее
От: Paul Joseph McGee
Дата:
Сообщение: Input Forms
Следующее
От: Grant
Дата:
Сообщение: Re: Refreshing php page every 5 secs WHILE SAVING INFORMATION