From: Joe <dev@freedomcircle.net>
To: Judith <jaltamirano@correolux.com.mx>
Cc: pgsql-sql@postgresql.org
Subject: Re: Question about time
Date: Thu, 16 Nov 2006 17:23:44 -0500
Message-ID: <1163715824.692.1.camel@pampa> (raw)
In-Reply-To: <455C8E4F.5060406@correolux.com.mx>
References: <455C8E4F.5060406@correolux.com.mx>
On Thu, 2006-11-16 at 10:14 -0600, Judith wrote:
> Hi everyone I'm doing a query like this:
>
> SELECT CAST(fecha_hora_factura as time) FROM nota_venta
>
> and I get:
>
> 14:16:52.824395
>
> the field is timestamp type....... I just want the HOUR:MINUTE:SECOND
>
> the question is how I drop the millisecond??
Take a look at date_trunc() under Date/Time Functions and Operators.
Joe
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: dev@freedomcircle.net, jaltamirano@correolux.com.mx
Subject: Re: Question about time
In-Reply-To: <1163715824.692.1.camel@pampa>
* 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