Convert to seconds, why??

Fran รง ois Cuneo francois.cuneo at cuk.ch
Tue May 27 11:03:00 EDT 2003


> put fld "rgletemps" into tTime  --BTW don't need "cd" in front of
> "fld"
> set the itemDel to ":"
> put item 1 of tTime into tHours
> put item 2 of tTime into tMins
> put item 3 of tTime into tSecs
> set the numberFormat to "00"
> add 30 to tSecs
> add (tSecs div 60) to tMins
> put (tSecs mod 60) into tSecs
> add (tMins div 60) to tHours
> put (tMins mod 60) into tMins
> put (tHours mod 24) into tHours
> put tHours & ":" & tMins & ":" & tSecs into fld "rgletemps"
Thank you very much Ken
Yes it works fine but just one little problem:

>From 0:00:00 to 1:00:00 all is perfect
But after
The time increment from 29 seconds

1:00:29
1:00:58
1:01:27

Do you have an idea?

But one more time, thank you for your complete answser!
I put it in my database about Revolution, like the others...
Friendly

franois

-------------- 
Franois Cuneo
Site Web ddi au Macintosh http://www.cuk.ch
E-mail: francois.cuneo at cuk.ch



More information about the use-livecode mailing list