From: | Roberto Mello <rmello(at)cc(dot)usu(dot)edu> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Time difference without intervals |
Date: | 2002-11-08 18:20:02 |
Message-ID: | 20021108182002.GC25961@cc.usu.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
I saw this question on another PG mailing list, and I don't know how to
answer. I've tried casting the interval to a timestamp, but that doesn't
seem to be supported in 7.2. Does anyone have an answer?
Is there any way to make a timestamp difference operation not return an
interval? I'd like to get hours, minutes and seconds only, not the "1 day"
or whatnot.
lbn-dev=# select now() - '2002-11-07 7:42'::timestamp;
?column?
-----------------------
1 day 02:01:57.987838
(1 row)
Thanks,
-Roberto
--
+----| Roberto Mello - http://www.brasileiro.net/ |------+
+ Computer Science Graduate Student, Utah State University +
+ USU Free Software & GNU/Linux Club - http://fslc.usu.edu/ +
TAGLINE NO ESPELHO ¤ OHLEPSE ON ENILGAT
From | Date | Subject | |
---|---|---|---|
Next Message | Bruno Wolff III | 2002-11-08 18:59:10 | Re: Time difference without intervals |
Previous Message | Luis Sousa | 2002-11-08 17:29:31 | Permission on insert rules |