[REBOL] Re: R: Date math bug?
From: g:santilli:tiscalinet:it at: 24-Mar-2004 16:13
On Wednesday, March 24, 2004, 2:28:22 PM, you wrote:
GC> Bruno, it seems that you can't make the difference of a date/time with
GC> another greater.
GC> In the second example, the correct expression is test2 - test1
The problem actually is that SUBTRACT returns the number of days
between the two dates; so the result is correct. You have to use
DIFFERENCE if you want more precision.
>> d1: now
>> d2: now
>> d2 - d1
>> difference d2 d1
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/