Time Calculations

Dan Shafer revolutionary.dan at gmail.com
Mon Feb 13 16:01:34 EST 2006


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.

On 2/6/06, Gregory Lypny <gregory.lypny at videotron.ca> wrote:
> Hello everyone,
>
> I want to confirm that, bugs aside, time calculations can only be
> done using the dateItems.  I ask this because the following
> inequality gives me the wrong answer when using a twelve hour clock.
>
> set the twelveHourTime to true
> if "3:45 PM" >= "4:10 AM"
> then
> put "Later"
> else
> put "Earlier"
> end if
>
>         Gregory
> _______________________________________________
> 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
>


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, "Revolution: Software at the Speed of Thought"
>From http://www.shafermediastore.com/tech_main.html



More information about the use-livecode mailing list