Re: Mailing - Mailing list pgsql-general

From Tom Lane
Subject Re: Mailing
Date
Msg-id 15059.1096988215@sss.pgh.pa.us
Whole thread Raw
In response to Mailing  (Todd P Marek <affe23@somahq.com>)
List pgsql-general
Todd P Marek <affe23@somahq.com> writes:
> I am using the to_char function to make the times human friendly
>     to_char(class_schedule.endtime, 'HH:MI:SS AM')
> which returns
>     06:30:00 AM - 07:30:00 AM

> I am really looking to get it outputting like this.
>     6:30 AM - 7:30 AM

> I have looked through the documentation and haven't found anything to
> do this in postgres.

I think you want 'FMHH:MI AM' ... if not, you'd better be more specific
about what you want.

            regards, tom lane

pgsql-general by date:

Previous
From: Csaba Nagy
Date:
Subject: Re: Mailing
Next
From: Stephan Szabo
Date:
Subject: Re: Mailing