Nazdarek [EMAIL PROTECTED]

On 14-�ec-00, [EMAIL PROTECTED] wrote:
> Hi, Boleslav!

> 
> What is this supposed to prove?
> If you are saying that they return 
> different times then that is no surprise.
> Use random/seed someinitialvalue 
> if you are trying to create re-usable 
> pseudo-random sequences for debugging.
> 

Well, sorry - the first values are O.K., are just wanted to show WHERE
EXACTLY the bug appears.

> 
> I am not sure why you want to 
> use random with dates, but 
> it seems to basically be working
> 
> 
>>> random 9-Aug-2000/16:25:00+1:00
> == 15-Jun-0060+1:00
> 
> This expression is wrong and is 
> one of the unfortunate gotchas in Rebol 
> in-line operators.  You MUST separate with 
> a space.
> 
> 9-Aug-2000/16:25:00+1:00
> I don't know what the heck that is,
> but rebol thinks it is a date! type.
> 
> You need to specify it this way if you 
> want to add an hour to a value:
> 9-Aug-2000/16:25:00 + 1:00
> Then the result will be
> 9-Aug-2000/17:25:00

No, you're wrong.
Try 'now on console and you'll get something like 9-Aug-2000/16:25:00+1:00
the last number is TIMEZONE stamp. The 'random, 'find and 'select (and maybe
some other I've tried only this) has the bug ONLY when using full date format
including timezone stamp - and that was the problem (I didn't explain it
well).
I'm writing REBOL CGI counter and each visit is saved with visit's date. Then
I need to look for some values in this block but REBOL says it can't find
anything - the date format is generated by 'NOW and it cannot be my fault.


Thanks again

-- 
---------------------------------------------------------------
Boleslav Brezovsky, NOT know as Kryptoplex, maybe on [EMAIL PROTECTED]
                member of R.U.R (means RobotenUndRebol this week)
www.volny.cz/weirddream               MUSIC&SOUND               listen.to/sintezar   
---------------------------------------------------------------


Reply via email to