Time Calculations

J. Landman Gay jacque at hyperactivesw.com
Mon Feb 13 16:56:16 EST 2006


Thomas von Fintel wrote:
> To me, "15:45" <= "04:10" looks like a simple string comparison. Since 
> "0" < "1" the result ought to be "false".
> 
> Looking at these strings as time, Revolution's answer still is correct. 
> "15:45" surely isn't early than "04:10".
> One of the advantages of using a 24h time scale is that string 
> comparisons and time comparisons give the same result.
> 
> Maybe I'm missing something obvious.

No, I think you've nailed it. Anything within quotation marks will 
always be interpreted as a string literal.

> 
> Thomas
> 
> 
> Am 13.02.2006 um 22:01 schrieb Dan Shafer:
> 
>> Gregory....
>>
>> Not sure your conclusion is justified by the facts. :-)
>>
>> With twelvehourtime set to true or false, the same result is obtained.
>> It appears that Revolution believes that 3:45 P.M., however it is
>> expressed, is in fact earlier than 4:10 A.M. With the twelveHourTime
>> set to false, this line:
>>
>> put "15:45" <= "04:10"
>>
>> in the Message box produces a result of "false" as well.
>>
>> The logic isn't clear to me, but the behavior is at least consistent.
> 
> 
> 
> -- 
> Katharina und Thomas von Fintel
> Pinnasberg 76
> 20359 Hamburg
> Germany
> 
> fintel at hansenet.de
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> 


-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list