Re: timeofday() and now() issue.. - Mailing list pgsql-sql

From Tom Lane
Subject Re: timeofday() and now() issue..
Date
Msg-id 10505.1051887437@sss.pgh.pa.us
Whole thread Raw
In response to timeofday() and now() issue..  (Rajesh Kumar Mallah <mallah@trade-india.com>)
Responses Re: timeofday() and now() issue..  (Rajesh Kumar Mallah <mallah@trade-india.com>)
List pgsql-sql
Rajesh Kumar Mallah <mallah@trade-india.com> writes:
> SELECT CAST (timeofday() as timestamp with time zone) - CAST (now() as timestamp with time zone);
> shudn't it return something close to 0 ?

Works for me ... what's your platform, PG version, and timezone?
And what are you getting from the intermediate steps in that expression?
        regards, tom lane



pgsql-sql by date:

Previous
From: Rod Taylor
Date:
Subject: Re: What is bad in this query ?
Next
From: Rajesh Kumar Mallah
Date:
Subject: Re: timeofday() and now() issue..