Re: Problem with date calculation

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Problem with date calculation
Дата
Msg-id 20020826083418.G61321-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Problem with date calculation  (Patrick FICHE <Patrick.FICHE@AQSACOM.COM>)
Список pgsql-general
On Mon, 26 Aug 2002, Patrick FICHE wrote:

> Hi,
>
> I'm a newbie to Postgresql and have a problem manipulating dates in a
> function...
>
> In fact, I want a function to add some days to the current date and return
> the result date.
>
> My code would be something like :
>
> _DTcurrent := NOW() + interval ''_INTdays days'';

I think,
_DTcurrent := NOW() + CAST( _INTdays || '' days'' as interval);

will work.


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

Предыдущее
От: Patrick FICHE
Дата:
Сообщение: Problem with date calculation
Следующее
От: Patrick FICHE
Дата:
Сообщение: Re: Problem with date calculation