Re: time - Mailing list pgsql-sql

From Rod Taylor
Subject Re: time
Date
Msg-id 1131647230.819.147.camel@home
Whole thread Raw
In response to Re: time  (Michael Fuhr <mike@fuhr.org>)
List pgsql-sql
On Thu, 2005-11-10 at 11:21 -0700, Michael Fuhr wrote:
> On Thu, Nov 10, 2005 at 01:11:27PM -0500, Rod Taylor wrote:
> > rbt=# select cast(now() - date_trunc('day', now()) as time);
> >       time
> > -----------------
> >  13:10:42.495579
> > (1 row)
> 
> Am I missing something?  Is there a reason not to simply cast the
> timestamp value to time?

Nope. I had thought that the question came up because a straight cast
didn't work so I gave the first work around I thought of.
-- 



pgsql-sql by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: time
Next
From: Michael Fuhr
Date:
Subject: Re: time