strip ending. from time
This commit is contained in:
parent
6768d591cd
commit
4246ddce1e
1 changed files with 3 additions and 1 deletions
|
@ -261,7 +261,9 @@ def time2ms(timeString):
|
||||||
ms = 0.0
|
ms = 0.0
|
||||||
p = timeString.split(':')
|
p = timeString.split(':')
|
||||||
for i in range(len(p)):
|
for i in range(len(p)):
|
||||||
ms = ms * 60 + float(p[i])
|
_p = p[i]
|
||||||
|
if _p.endswith('.'): _p =_p[:-1]
|
||||||
|
ms = ms * 60 + float(_p)
|
||||||
return int(ms * 1000)
|
return int(ms * 1000)
|
||||||
|
|
||||||
def shiftTime(offset, timeString):
|
def shiftTime(offset, timeString):
|
||||||
|
|
Loading…
Reference in a new issue