pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rod Taylor <pg@rbt.ca>
To: Judith Altamirano Figueroa <jaltamirano@correolux.com.mx>
Cc: pgsql-sql@postgresql.org
Subject: Re: time
Date: Thu, 10 Nov 2005 13:11:27 -0500
Message-ID: <1131646287.819.144.camel@home> (raw)
In-Reply-To: <1131635035.3529.143.camel@Desarrollo>
References: <1131635035.3529.143.camel@Desarrollo>

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)

-- 




view thread (10+ messages)  latest in thread

Message-ID: <1131646287.819.144.camel@home>
Permalink:  ../1131646287.819.144.camel@home/
Also on:    postgresql.org/message-id/1131646287.819.144.camel@home

 · 

reply

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, jaltamirano@correolux.com.mx
  Subject: Re: time
  In-Reply-To: <1131646287.819.144.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