Re: Time Formats

From: Jeffery L Post <postjeff(at)uwm(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Time Formats
Date: 2001-01-17 17:20:25
Message-ID: Pine.OSF.3.96.1010117104904.22009B-100000@alpha2.csd.uwm.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Well I finaly got around to trying the to_char function. And I am having
difficulty getting it to do what I want elegantly.

Here is the situation...
I am tracking the time that an event occurs in a column of type time.
(seperate column for date). I want to display the time of the event in a
fool proof HH:MM (AM | PM) format. As far as I can tell the to_char()
function is not overloaded for the time type just timestamp.

How do I format a column of type time to HH:MM AM | PM ?
I belive the now() function returns a timestamp. but I need a strict time
datatype example.

Thanks again
Jeff Post
University of Wisconsin - Milwaukee

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alfred Perlstein 2001-01-17 17:23:50 Re: MySQL file system
Previous Message Ligia M. Pimentel 2001-01-17 17:15:56 ltsWriteBlock: failed to write block xxx of temporary file