[REBOL] Re: R: Date math bug?
From: nitsch-lists:netcologne at: 24-Mar-2004 17:22
On Mittwoch, 24. M=E4rz 2004 17:04, Maarten Koopmans wrote:
> 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
Problem is when you midnight in between, the result is completely wrong :)
Thats why we have difference now.
> IIRC infix is a bit faster (at least it should be as infix ops are
> treated special by REBOL).