mirror of
https://github.com/familyfriendlymikey/mpv-cut
synced 2024-07-01 12:08:58 +00:00
to_hms pad zeros #4
This commit is contained in:
parent
d1a9d62439
commit
ede251ff64
@ -46,7 +46,7 @@ def to_hms secs
|
||||
Math.floor secs / 3600
|
||||
Math.floor (secs % 3600) / 60
|
||||
Math.round((secs % 3600 % 60) * 1000) / 1000
|
||||
].filter(Boolean).join("-")
|
||||
].map(do String($1).padStart(2,0)).join("-")
|
||||
|
||||
def main
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user