Re: adding times togeather

Поиск
Список
Период
Сортировка
От Steve Crawford
Тема Re: adding times togeather
Дата
Msg-id 20030428222554.B1FA0103C9@polaris.pinpointresearch.com
обсуждение исходный текст
Ответ на adding times togeather  (ed despard <despareg@clarkson.edu>)
Ответы Re: adding times togeather  (ed despard <despareg@clarkson.edu>)
Re: adding times togeather  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Re: adding times togeather  (Alvaro Herrera Munoz <alvherre@dcc.uchile.cl>)
Список pgsql-general
I can't tell what you want. Adding two times doesn't make sense. What is
3:15pm + 4:30am or 5:15 April 3 2003 + 4:27 June 14 1997. No such beast
exists. I suspect that one of your "times" is really an interval.

You can:
Subtract two times and get an interval
Add an interval to a time to get a time
Add two intervals to get an interval

What are you trying to do? It might help to tell us what the two columns
represent and what the result is supposed to represent.

Cheers,
Steve


On Monday 28 April 2003 3:17 pm, ed despard wrote:
> i have two collumns of type time, and i want to get the result of the
> two times added togeather. how do i go about doing this? i could use
> timestamps instead of times if necessary, but all the date/time
> functions seem to want to add intervals to things.
>
> thanks,
> ed
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster


В списке pgsql-general по дате отправления:

Предыдущее
От: ed despard
Дата:
Сообщение: adding times togeather
Следующее
От: "Nigel J. Andrews"
Дата:
Сообщение: Re: timestamps and dates