From: Rod Taylor <pg@rbt.ca>
To: Michael Fuhr <mike@fuhr.org>
Cc: Judith Altamirano Figueroa <jaltamirano@correolux.com.mx>
Cc: pgsql-sql@postgresql.org
Subject: Re: time
Date: Thu, 10 Nov 2005 13:27:10 -0500
Message-ID: <1131647230.819.147.camel@home> (raw)
In-Reply-To: <20051110182139.GA87715@winnie.fuhr.org>
References: <1131635035.3529.143.camel@Desarrollo>
<1131646287.819.144.camel@home>
<20051110182139.GA87715@winnie.fuhr.org>
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.
--
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: pg@rbt.ca, mike@fuhr.org, jaltamirano@correolux.com.mx
Subject: Re: time
In-Reply-To: <1131647230.819.147.camel@home>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox