From e00e1b5d5f97d3768e991629c1f1c9963e74ac6e Mon Sep 17 00:00:00 2001 From: familyfriendlymikey Date: Wed, 25 Jan 2023 16:18:53 -0500 Subject: [PATCH] fix seconds place --- make_cuts.imba | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/make_cuts.imba b/make_cuts.imba index 0be19c1..b758ff2 100644 --- a/make_cuts.imba +++ b/make_cuts.imba @@ -45,8 +45,9 @@ def to_hms secs [ Math.floor secs / 3600 Math.floor (secs % 3600) / 60 - (Math.round((secs % 3600 % 60) * 1000) / 1000).toFixed(3) - ].map(do String($1).padStart(2,0)).join("-") + Math.floor ((secs % 3600 % 60) * 1000) / 1000 + ].map(do String($1).padStart(2,0)).join("-") + + '.' + String(Math.floor secs % 1 * 1000).padEnd(3,0) def main