Re: Getting time from date field - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Getting time from date field
Date
Msg-id 20031105204702.GA9556@wolff.to
Whole thread Raw
In response to Getting time from date field  (Alejandro Javier Pomeraniec <apomeraniec@buenosaires.gov.ar>)
List pgsql-general
On Wed, Nov 05, 2003 at 17:12:12 +0000,
  Alejandro Javier Pomeraniec <apomeraniec@buenosaires.gov.ar> wrote:
> Hi !
>
> Is there any way to get the time like the following example ?
>
> '2003-05-11 15:21:21'
>
> should return
>
> '15:21:21'

You can use the to_char function to convert timestamps to text with
control over the output format.

pgsql-general by date:

Previous
From: George Essig
Date:
Subject: tsearch2 and gist index bloat
Next
From: "Chris M. Gamble"
Date:
Subject: Multi-master asynchronous replication