Re: Help needed on time data types - Mailing list pgsql-general

From Michal Taborsky
Subject Re: Help needed on time data types
Date
Msg-id 40F24A4C.8020103@taborsky.cz
Whole thread Raw
In response to Help needed on time data types  (mike <mike@redtux1.uklinux.net>)
List pgsql-general
mike wrote:
> I cannot seem to find a field type in postgres that is equivalent to
> h:mm without enforcing a 24 hour day limit. This seems to preclude pg
> from use - am I correct?

You want to use "interval" data type and then do some formatting on the
output to get 123 hours 30 minutes.

See:
http://www.postgresql.org/docs/7.4/interactive/datatype-datetime.html

--
Michal Taborsky
http://www.taborsky.cz


pgsql-general by date:

Previous
From: reina_ga@hotmail.com (Tony Reina)
Date:
Subject: Re: Postgress latest Windows Version
Next
From: Peter Eisentraut
Date:
Subject: Re: Help needed on time data types