Re: Time handling in pgsql. (fwd)

From: "Jeff MacDonald" <jeff(at)interchange(dot)ca>
To: <nolan(at)celery(dot)tssi(dot)com>, "pgsql general list" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Time handling in pgsql. (fwd)
Date: 2003-04-22 17:20:01
Message-ID: FJENKCLABGGBKBDGHOJJCEPGCAAA.jeff@interchange.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Actually I'd be happy if i could simply do this

SELECT age(start,end)::seconds From foo;

or something very close to that. Then i could process
the rest in perl.

Jeff.

>> From: pgsql-general-owner(at)postgresql(dot)org
>> [mailto:pgsql-general-owner(at)postgresql(dot)org]On Behalf Of
>> nolan(at)celery(dot)tssi(dot)com
>> Subject: [GENERAL] Time handling in pgsql. (fwd)

>> It would be great if the 'age' function could be supplied a formatting
>> string so that you could format the data any way you want.

>> Within that function convert both timestamps into seconds, do
>> the arithmetic and return the number of seconds.
>>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jonathan Bartlett 2003-04-22 17:25:12 Re: > 16TB worth of data question
Previous Message Joe Conway 2003-04-22 16:55:27 Re: Documentation