RE : How to convert a UnixTimestamp to a PostgreSQL date without using ::abstime ?

Поиск
Список
Период
Сортировка
От Bruno BAGUETTE
Тема RE : How to convert a UnixTimestamp to a PostgreSQL date without using ::abstime ?
Дата
Msg-id !~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAATBuXKOMvlkWzD3KJN6FWLMKAAAAQAAAA42Sh/VTqQ0WUipWJyx5c+QEAAAAA@baguette.net
обсуждение исходный текст
Ответ на Re: How to convert a UnixTimestamp to a PostgreSQL date without using ::abstime ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: RE : How to convert a UnixTimestamp to a PostgreSQL date without using ::abstime ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
> Sooner or later we'll probably invent an explicit function to do this
> conversion.

I may be wrong but why create a new fonction for unixtimestamp<-->date
conversion ?

I think that the to_date() function is the best place to add this kind
of conversion. Isn't it better to add a new value for the second
parameter of the to_date function ?

Regards,

---------------------------------------
Bruno BAGUETTE - pgsql-ml@baguette.net


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

Предыдущее
От: Stéphane Cazeaux
Дата:
Сообщение: Question about conccurrency control and Insert
Следующее
От: Thierry Missimilly
Дата:
Сообщение: Postgres 7.4Beta2 Thread-safe