time2msc(time){ ;e.g. 01:01:22.342 a := StrSplit(time,".") b := StrSplit(a.1,":") f := "0." a.2 return floor(b.1*1000*60*60+b.2*1000*60+b.3*1000+f*1000) } msc2time(msc){ return Format("{1:02d}", floor(msc/1000/60/60)) ":" Format("{1:02d}", Mod(floor(msc/1000/60),60)) ":" Format("{1:02d}", Mod(floor(msc/1000),60)) "." Format("{1:03d}", Mod(msc,1000)) }
62 queries in 1.954 seconds |