Re: Problem with date calculations

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Problem with date calculations
Дата
Msg-id 20040110145131.G19122@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Problem with date calculations  ("Cornelia Boenigk" <poppcorn@cornelia-boenigk.de>)
Список pgsql-general
On Sat, 10 Jan 2004, Cornelia Boenigk wrote:

> I have a table with two fields, d1 timestamp and dur smallint.
> d1 is the starting date and dur is the duration. From this two fields
> I want to generate future dates for the whole table.

I'd suggest using something like:
 d1 + dur * interval '1 month'
rather than attempting to do it via text.

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

Предыдущее
От: "Cornelia Boenigk"
Дата:
Сообщение: Problem with date calculations
Следующее
От: "Cornelia Boenigk"
Дата:
Сообщение: Re: Problem with date calculations