This is the time translation system in my project. Currently i have a little problem with this. As you can see the number turn after 108.84 to 10.8 instead of 110.84 and so it goes with next values…
108.84 equals to an integer value 10884, which is saved in one external text file to define the timing there an arrow should be spawned.
btime is the integer value 10884
(at 1:39:84, the minute is already 60 seconds so its calculated to gether to 108 seconds and 84 milisecs)
bcent is the 84
bsec is the 08
bmint should be the 1
Is there a way to stabilze it. If you do not understand my question just make questions…
I cant show you the whole code since its written by Pohjan and its really long. The other parts of the code dont concern this timing splitting function.
Thanks in advance
#first parse BBBBCC to centseconds bcent=btime%100 bsec=int(btime/100)%100 bmin=int(btime/1000) #<<<< how should i format bmin? bmilli=bmin+bsec+(bcent/100) return bmilli