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

[REBOL] Re: R: Date math bug?

From: g:santilli:tiscalinet:it at: 24-Mar-2004 16:13

Hi Giuseppe, 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
== 24-Mar-2004/16:12:55+1:00
>> d2: now
== 24-Mar-2004/16:13:05+1:00
>> d2 - d1
== 0
>> difference d2 d1
== 0:00:10 Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/