Help needed on time data types
Hi I am trying to setup a timesheet app. However I have come up against
an unexpected problem (possibly fatal)
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?
All the date-time types seem to only be for specific time dates and not
for a running total.
Any help appreciated.
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