Re: problem with timeofday() function in cvs PostgreSQL

Поиск
Список
Период
Сортировка
От Dennis Björklund
Тема Re: problem with timeofday() function in cvs PostgreSQL
Дата
Msg-id Pine.LNX.4.44.0308081235310.26410-100000@zigo.dhs.org
обсуждение исходный текст
Ответ на problem with timeofday() function in cvs PostgreSQL  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Ответы Re: problem with timeofday() function in cvs PostgreSQL  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Список pgsql-general
On Fri, 8 Aug 2003, Pavel Stehule wrote:

> In this version I can't convert returned value to time. timeofday() return
> text. I need convert to timestamp before. It is normal behavior? I
> expected timestamp as returned type.

It is documented to return a string for historical reasons:

http://www.postgresql.org/docs/7.3/static/functions-datetime.html#FUNCTIONS-DATETIME-CURRENT

You probably want now() instead of that function.

--
/Dennis


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: problem with timeofday() function in cvs PostgreSQL
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: problem with timeofday() function in cvs PostgreSQL