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 !~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAATBuXKOMvlkWzD3KJN6FWLMKAAAAQAAAAX7OIsWF9LEylYbojYVdBygEAAAAA@baguette.net
обсуждение исходный текст
Ответ на 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 по дате отправления:

Предыдущее
От: froggle2003@yahoo.com (Alex Martinoff)
Дата:
Сообщение: Constructing column from different individual fields in same row.
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Constructing column from different individual fields in same row.