Skip to content

Commit c131c74

Browse files
committed
fix: s2time formatting
1 parent 292a88b commit c131c74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nxtools/timeutils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ def s2time(secs:float, show_secs:bool=True, show_fracs:bool=True):
7878
hd = int(hh % 24)
7979
mm = int((wholesecs / 60) - (hh*60))
8080
ss = int(wholesecs - (hh*3600) - (mm*60))
81-
r = "{hd:02d}:{mm:02d}"
81+
r = f"{hd:02d}:{mm:02d}"
8282
if show_secs:
83-
r += ":{ss:02d}"
83+
r += f":{ss:02d}"
8484
if show_fracs:
85-
r += ".{centisecs:02d}"
85+
r += f".{centisecs:02d}"
8686
return r
8787

8888
def f2tc(f, base=25):

0 commit comments

Comments
 (0)