Sorting on fieldtype Time? - Mailing list pgsql-general

From Bjorn T Johansen
Subject Sorting on fieldtype Time?
Date
Msg-id 29915.193.212.14.12.1057742654.squirrel@www.havleik.no
Whole thread Raw
Responses Re: Sorting on fieldtype Time?  (Andrew Sullivan <andrew@libertyrms.info>)
Re: Sorting on fieldtype Time?  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Re: Sorting on fieldtype Time?  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-general
I have a small problem.. I need to sort some rows on a Time field, but
the time in these rows are recorded on evenings and nights, from 2200 to
0600 for instance. The problem is that the time after midnight should
come after the time before midnight, i.e. 2315, 2345, 0015, 0100 should
be sorted in this order and not 0015, 0100, 2315,2345.
Is there a solution to this, other than using Timestamp instead of Time?


Regards,

BTJ



-----------------------------------------------------------------------------------------------
Bjørn T Johansen (BSc,MNIF)
Executive Manager
btj@havleik.no                  Havleik Consulting
Phone : +47 67 54 15 17         Conradisvei 4
Fax : +47 67 54 13 91           N-1338 Sandvika
Cellular : +47 926 93 298       http://www.havleik.no
-----------------------------------------------------------------------------------------------
"The stickers on the side of the box said "Supported Platforms: Windows
98, Windows NT 4.0,
Windows 2000 or better", so clearly Linux was a supported platform."
-----------------------------------------------------------------------------------------------


pgsql-general by date:

Previous
From: "Ivar"
Date:
Subject: Re: Native dataprovider on Windows
Next
From: Serkan Bektaþ
Date:
Subject: Re: Native dataprovider on Windows