Re: time calculations

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oliver Vecernik <vecernik(at)aon(dot)at>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: time calculations
Date: 2001-05-04 15:26:46
Message-ID: 25290.988990006@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Oliver Vecernik <vecernik(at)aon(dot)at> writes:
> My problem is how to convert the intervals to decimal hours

See date_part('epoch', interval_value)

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Dmitry Morozovsky 2001-05-04 17:39:22 [possibly] dumb question
Previous Message tsattler 2001-05-04 15:12:00 Queries