Time Calculations
Thomas von Fintel
Thomas at vonfintel.org
Mon Feb 13 16:50:29 EST 2006
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.
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
More information about the use-livecode
mailing list