Losing track of time

Scott Rossi scott at tactilemedia.com
Mon Aug 11 17:41:33 EDT 2003


Recently, "Dar Scott"  wrote:

>> convert it to dateitems
>> add 1 to item 5 of it # up hour to next
>> if item 5 of it is 24 then # account for crossing midnight
>>   put zero into item 5 of it
>>   add 1 to item 4 of it
>>   ## similar checks for month and year overflow here
>> end if
>> put zero into item 6 of it # zero out minutes
>> convert it to seconds
> 
> get (round(it/3600) + 1)*3600

I still think you will all find that maintaining a built-in timer with tight
accuracy is too much work.  Just poll the current time and base your
calculations on that.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com




More information about the use-livecode mailing list