From: Bruno Wolff III <bruno@wolff.to>
To: Aarni Ruuhimäki <aarni@kymi.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: interval as hours or minutes ?
Date: Wed, 7 Feb 2007 15:25:19 -0600
Message-ID: <20070207212519.GA14268@wolff.to> (raw)
In-Reply-To: <200702071903.35126.aarni@kymi.com>
References: <200702071903.35126.aarni@kymi.com>
On Wed, Feb 07, 2007 at 19:03:35 +0200,
Aarni Ruuhimäki <aarni@kymi.com> wrote:
>
> Could anyone please tell an easy way to get total hours or minutes from an
> interval ?
Extract the epoch from the interval and divide by the number of seconds
in the period of time that applies and apply appropiate rounding.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: bruno@wolff.to, aarni@kymi.com
Subject: Re: interval as hours or minutes ?
In-Reply-To: <20070207212519.GA14268@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox