Re: Question about time

From: Joe <dev(at)freedomcircle(dot)net>
To: Judith <jaltamirano(at)correolux(dot)com(dot)mx>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Question about time
Date: 2006-11-16 22:23:44
Message-ID: 1163715824.692.1.camel@pampa
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Phillip Smith 2006-11-16 22:27:58 Re: Question about time
Previous Message Andrew Sullivan 2006-11-16 21:20:38 Re: Random()