duongthienz commited on
Commit
d563a76
·
verified ·
1 Parent(s): 53e08d0

Change hh:mm:ss to hh:mm:ss.ss

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -445,10 +445,11 @@ try:
445
  secs = float(val)
446
  except (TypeError, ValueError):
447
  return str(val)
448
- h = int(secs // 3600)
449
- m = int(secs % 3600 // 60)
450
- s = int(secs % 60)
451
- return f"{h:02d}:{m:02d}:{s:02d}"
 
452
 
453
  tableDF = displayDF.copy()
454
  if "Task" in tableDF.columns:
 
445
  secs = float(val)
446
  except (TypeError, ValueError):
447
  return str(val)
448
+ h = int(secs // 3600)
449
+ m = int(secs % 3600 // 60)
450
+ s = int(secs % 60)
451
+ cs = round((secs % 1) * 100)
452
+ return f"{h:02d}:{m:02d}:{s:02d}.{cs:02d}"
453
 
454
  tableDF = displayDF.copy()
455
  if "Task" in tableDF.columns: