Had some odd stuff...once again (600 is the timescale I was working with; you 
can find the timescale() with that function) :

on updateCurrTime
    put round(the currentTime of player "thePlayer" / 600) into theTime
     put theTime div 60 into theMin
     put theTime mod 60 into theSec
     if len(theSec) = 1 then put "0" & theSec into theSec
     put theMin & ":" & theSec into field "CurrTime"
     send "updateCurrTime" to me in 1 seconds
end updateCurrTime

> On May 30, 2015, at 11:16 AM, Peter Bogdanoff <bogdan...@me.com> wrote:
> 
> on updateCurrTime
>     put round(the currentTime of player “thePlayer" 1005 / 600) into theTime
>      put theTime div 60 into theMin
>      put theTime mod 60 into theSec
>      if len(theSec) = 1 then put "0" & theSec into theSec
>      put theMin & ":" & theSec into field "CurrTime"
>      send "updateCurrTime" to me in 1 seconds
> end updateCurrTime

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to