Age() calculation question

From: "Bob Lee" <bob(at)cnsisp(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Age() calculation question
Date: 2005-05-11 01:32:39
Message-ID: 20050511013239.GA20558@mach.cnsisp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have two timestamps -- start and end. I use age(end,start)
to give me a "session" time and then I subtotal those. If
the total times are less than 24 hours I get a time is the
format of XX:xx:xx -- this is great. But if the time is over
24 hours I get 1 day XX:xx:xx, which really raises hell with
my export to Excel. Any suggestions on how to avoid this
little snag?

Thanks for your help.

Bob Lee
--
**** I prefer email in plain text ****
bob(at)cnsisp(dot)com blee(at)freeshell(dot)org
pgp:D3EE2269 <certserver.pgp.com>

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2005-05-11 01:51:49 Re: [PERFORM] "Hash index" vs. "b-tree index" (PostgreSQL
Previous Message Neil Conway 2005-05-11 00:39:56 Re: [GENERAL] SECURITY RELEASES: 7.2.8 - 7.3.10 - 7.4.8 - 8.0.3