From: | David Rysdam <drysdam(at)ll(dot)mit(dot)edu> |
---|---|
To: | "pg >> Postgres General" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: missing something obvious about intervals? |
Date: | 2005-12-12 18:07:04 |
Message-ID: | 439DBC48.9050606@ll.mit.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
I knew it had to be something like this, but the search space was just
too big. Thanks!
Jim Buttafuoco wrote:
>try
>
>
>select '2005-12-01'::date + (456.5::float || ' seconds')::interval;
> ?column?
>------------------------
> 2005-12-01 00:07:36.50
>(1 row)
>
>
>---------- Original Message -----------
>From: David Rysdam <drysdam(at)ll(dot)mit(dot)edu>
>To: "pg >> Postgres General" <pgsql-general(at)postgresql(dot)org>
>Sent: Mon, 12 Dec 2005 13:00:13 -0500
>Subject: [GENERAL] missing something obvious about intervals?
>
>
>
>>I have a table that has a date field and a "real" field that represents
>>a number of seconds. I want select the date field + the seconds field.
>>Just adding it doesn't work. Casting to interval doesn't work.
>>to_date/to_timestamp don't work. How do I do this?
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 3: Have you checked our extensive FAQ?
>>
>> http://www.postgresql.org/docs/faq
>>
>>
>------- End of Original Message -------
>
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | vishal saberwal | 2005-12-12 18:08:12 | ERROR: could not find function |
Previous Message | Jim Buttafuoco | 2005-12-12 18:04:05 | Re: missing something obvious about intervals? |
From | Date | Subject | |
---|---|---|---|
Next Message | Volkan YAZICI | 2005-12-12 18:09:14 | Re: missing something obvious about intervals? |
Previous Message | Jim Buttafuoco | 2005-12-12 18:04:05 | Re: missing something obvious about intervals? |