SyntaxFix
Write A Post
Hire A Developer
Questions
not really eleganter, but a bit shorter would be
function to_tuple(x): y = 60*60*1000 h = x/y m = (x-(h*y))/(y/60) s = (x-(h*y)-(m*(y/60)))/1000 mi = x-(h*y)-(m*(y/60))-(s*1000) return (h,m,s,mi)