From: | Patrick FICHE <Patrick(dot)FICHE(at)AQSACOM(dot)COM> |
---|---|
To: | 'Stephan Szabo' <sszabo(at)megazone23(dot)bigpanda(dot)com> |
Cc: | "'PostgreSQL - General (E-mail)'" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Problem with date calculation |
Date: | 2002-08-26 15:50:23 |
Message-ID: | 85058ADF852DD5118FD50002A528A5B6079A15@SERVEUR |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Thanks a lot, it worked...
-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org]On Behalf Of Stephan Szabo
Sent: Monday, August 26, 2002 5:37 PM
To: Patrick FICHE
Cc: PostgreSQL - General (E-mail)
Subject: Re: [GENERAL] Problem with date calculation
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.
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
From | Date | Subject | |
---|---|---|---|
Next Message | Lamar Owen | 2002-08-26 18:25:27 | RPMs for release 7.2.2 |
Previous Message | Stephan Szabo | 2002-08-26 15:37:25 | Re: Problem with date calculation |