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

From Rajesh Kumar Mallah
Subject timeofday() and now() issue..
Date
Msg-id 200305021844.35194.mallah@trade-india.com
Whole thread Raw
Responses Re: timeofday() and now() issue..  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql

SELECT CAST (timeofday() as timestamp with time zone) - CAST (now() as timestamp with time zone);
+-----------------+
|    ?column?     |
+-----------------+
| 03:30:00.000295 |
+-----------------+

shudn't it return something close to 0 ?

like
SELECT CAST (timeofday() as timestamp ) - CAST (now() as timestamp with time zone);
+-----------------+
|    ?column?     |
+-----------------+
| 00:00:00.000405 |
+-----------------+



regds
Mallah



-- 
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)

Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.



pgsql-sql by date:

Previous
From: "A.Bhuvaneswaran"
Date:
Subject: Re: Problem with old relation
Next
From: Rado Petrik
Date:
Subject: What is bad in this query ?