Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: add/subtract with date!

From: t_degrav:rhrk:uni-kl at: 14-Nov-2000 12:52

Thanks, Kim, Anton, but... Anton wrote:
> Jim Goodnow II wrote:
...
> > 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
That's only part of the problem... Jim's solution does look very simple, but it doesn't work at all:
>> date
== 14-Nov-2000
>> date/month: date/month + 1
== 14-Dec-2000
>> date
== 14-Nov-2000 Tom