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

[REBOL] Re: R: Date math bug?

From: maarten:vrijheid at: 24-Mar-2004 17:04

Hi Gabriele,
> 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. >
Or, using infix:
>> now/time
== 17:02:19 2 secs later:
>> now/time - 5
== 17:02:16 IIRC infix is a bit faster (at least it should be as infix ops are treated special by REBOL). --Maarten