formating interval question

From: mike <mike(at)bristolreccc(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: formating interval question
Date: 2004-09-24 10:58:44
Message-ID: 1096023524.12742.5.camel@datacc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have an interval field which is used to calculate total hours.

At present it outputs as days hours minutes

Is there any way to output as total hours

I have tried to_char(field,'HH:MM')

but I get wierd results like -51 or -5

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Manolatos Tilemahos 2004-09-24 12:04:23 How to pass initdb LC_COLLATE & locale parameters when using wind ows? (with or without pginstaller)
Previous Message Daniel Martini 2004-09-24 09:33:00 plpgsql-fct. fails on NULL in record variables