milliseconds toFixed(3)

This commit is contained in:
familyfriendlymikey 2023-01-25 16:07:47 -05:00
parent cffda92571
commit 370399e991
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ def to_hms secs
[ [
Math.floor secs / 3600 Math.floor secs / 3600
Math.floor (secs % 3600) / 60 Math.floor (secs % 3600) / 60
Math.round((secs % 3600 % 60) * 1000) / 1000 (Math.round((secs % 3600 % 60) * 1000) / 1000).toFixed(3)
].map(do String($1).padStart(2,0)).join("-") ].map(do String($1).padStart(2,0)).join("-")
def main def main