Re: Mailing

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Todd P Marek <affe23(at)somahq(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Mailing
Date: 2004-10-05 14:56:55
Message-ID: 15059.1096988215@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Todd P Marek <affe23(at)somahq(dot)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

In response to

  • Mailing at 2004-10-05 14:32:10 from Todd P Marek

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2004-10-05 14:58:03 Re: Mailing
Previous Message Stephen Frost 2004-10-05 14:43:49 Re: Mailing