Re: problem with timeofday() function in cvs PostgreSQL - Mailing list pgsql-general

From Dennis Björklund
Subject Re: problem with timeofday() function in cvs PostgreSQL
Date
Msg-id Pine.LNX.4.44.0308081235310.26410-100000@zigo.dhs.org
Whole thread Raw
In response to problem with timeofday() function in cvs PostgreSQL  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Responses Re: problem with timeofday() function in cvs PostgreSQL  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
List 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 by date:

Previous
From: Pavel Stehule
Date:
Subject: problem with timeofday() function in cvs PostgreSQL
Next
From: Pavel Stehule
Date:
Subject: Re: problem with timeofday() function in cvs PostgreSQL