timeofday() and now() issue..

From: Rajesh Kumar Mallah <mallah(at)trade-india(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: timeofday() and now() issue..
Date: 2003-05-02 13:14:35
Message-ID: 200305021844.35194.mallah@trade-india.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Rado Petrik 2003-05-02 13:21:37 What is bad in this query ?
Previous Message A.Bhuvaneswaran 2003-05-02 12:54:27 Re: Problem with old relation