Time without seconds - Mailing list pgsql-general

From Andreas Kraftl
Subject Time without seconds
Date
Msg-id 1228214225.8137.26.camel@zeus
Whole thread Raw
Responses Re: Time without seconds  ("Grzegorz Jaśkiewicz" <gryzman@gmail.com>)
List pgsql-general
Hello,

is it possible to get the time without the seconds and without the usage
of a formatting function?

Example:
CREATE TABLE test.testtime
(
  thetime time without time zone
);
INSERT INTO test.testtime (thetime) VALUES ('12:34:56');
INSERT INTO test.testtime (thetime) VALUES ('23:45');
SELECT thetime from test.testtime;
The result should be without the seconds.

I know that there are formatting functions for date/time. But I am
searching for a way to get a formatted time with a simple SQL query.

Thanks
Andreas


pgsql-general by date:

Previous
From: "Picavet Vincent"
Date:
Subject: Re: Favorite Tom Lane quotes
Next
From: "Grzegorz Jaśkiewicz"
Date:
Subject: Re: Favorite Tom Lane quotes