Re: Getting time from date field

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Alejandro Javier Pomeraniec <apomeraniec(at)buenosaires(dot)gov(dot)ar>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Getting time from date field
Date: 2003-11-05 20:47:02
Message-ID: 20031105204702.GA9556@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Nov 05, 2003 at 17:12:12 +0000,
Alejandro Javier Pomeraniec <apomeraniec(at)buenosaires(dot)gov(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris M. Gamble 2003-11-05 20:57:56 Multi-master asynchronous replication
Previous Message George Essig 2003-11-05 20:27:05 tsearch2 and gist index bloat