Comments on earlier age() post.

From: "Mitch Vincent" <mitch(at)venux(dot)net>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Comments on earlier age() post.
Date: 2000-10-11 17:06:37
Message-ID: 00b501c033a5$9e0f7f10$0200000a@doot
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I haven't heard from anyone on my earlier age() post. If someone could test
it on their database and let me know if the behavior they get is expected, I
would greatly appreciate it.

The queries again :

hhs=# SELECT age('Sun Dec 03 08:00:00 2000 EST','Tue Oct 10 08:00:00 2000
EDT') as esec;
esec
------------------------
@ 1 mon 24 days 1 hour
(1 row)

Ok, but if I turn right around and add that value back , I get :

hhs=# SELECT ('Tue Oct 10 08:00:00 2000 EDT'::timestamp + '1 mon 24 days 1
hour'::interval);
?column?
------------------------------
Mon Dec 04 08:00:00 2000 EST
(1 row)

Thanks!!!

-Mitch

"I'd change the world if God would just give me the source code."

Responses

Browse pgsql-general by date

  From Date Subject
Next Message shm 2000-10-11 17:54:00 Postgres Global Variables
Previous Message Peter Eisentraut 2000-10-11 17:00:47 Re: initdb & multibyte