[REBOL] Re: add/subtract with date!
From: arolls:bigpond:au at: 14-Nov-2000 18:57
Jim Goodnow II wrote:
> At 01:23 AM 11/14/2000 +0100, you wrote:
> >I'm wondering how to calculate when using date! values...
> >
> >As long as I only want to add/subtract a certain amount of DAYS there
> >seem to be no problems, but when it comes to MONTHS or YEARS it gets a
> >little comlicated. Or am I missing something simple here???
>
> Hi Tom,
>
> Try:
>
> date/month: date/month + 1
>
> Hope this helps.
>
> - jim
Jim,
There is a problem with subtraction.
Example:
>> date: 14-Jan-2001
== 14-Jan-2001
>> date/month: date/month - 1
== 0
>> date
== 14-Apr-23846
Anton.