Re: CURRENT_TIMESTAMP vs actual time

From: "Christopher J(dot) Bottaro" <cjbottaro(at)alumni(dot)cs(dot)utexas(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: CURRENT_TIMESTAMP vs actual time
Date: 2005-04-21 14:22:26
Message-ID: d48cl9$2fn$1@sea.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

John DeSoi wrote:

>
> On Apr 20, 2005, at 6:15 PM, Christopher J. Bottaro wrote:
>
>> I understand that CURRENT_TIMESTAMP marks the beginning of the current
>> transaction. I want it to be the actual time. How do I do this?
>> timeofday() returns a string, how do I convert that into a TIMESTAMP?
>
>
> timeofday()::timestamp;

Great, that did it, thanks. I also found out that you can say
CAST(timeofday() AS TIMESTAMP). I assume its the same thing...

-- C

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2005-04-21 14:42:10 Re: CURRENT_TIMESTAMP vs actual time
Previous Message Zlatko Matic 2005-04-21 14:18:28 bigserial field in a view, nextval function ?