Re: time

From: Rod Taylor <pg(at)rbt(dot)ca>
To: Judith Altamirano Figueroa <jaltamirano(at)correolux(dot)com(dot)mx>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: time
Date: 2005-11-10 18:11:27
Message-ID: 1131646287.819.144.camel@home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, 2005-11-10 at 09:03 -0600, Judith Altamirano Figueroa wrote:
> Hello everybody!!!, I'd like to know if there another way to get the
> time from a timestamp type, because in earliest versions I just get
> the time like time(fecha) and now this returns an error, thanks in
> advanced!!!!!!!

rbt=# select cast(now() - date_trunc('day', now()) as time);
time
-----------------
13:10:42.495579
(1 row)

--

In response to

  • time at 2005-11-10 15:03:55 from Judith Altamirano Figueroa

Responses

  • Re: time at 2005-11-10 18:21:39 from Michael Fuhr

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2005-11-10 18:21:39 Re: time
Previous Message Samer Abukhait 2005-11-10 17:21:15 Re: migratation of database from oracle9i to postgreSQL8.0.3