On Mittwoch, 24. März 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).
>
> --Maarten

-Volker


-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to