Re: problem with timeofday() function in cvs PostgreSQL

From: Dennis Björklund <db(at)zigo(dot)dhs(dot)org>
To: Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: problem with timeofday() function in cvs PostgreSQL
Date: 2003-08-08 10:37:25
Message-ID: Pine.LNX.4.44.0308081235310.26410-100000@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2003-08-08 11:00:58 Re: problem with timeofday() function in cvs PostgreSQL
Previous Message Juris Krumins 2003-08-08 09:25:28 Temporary table