summaryrefslogtreecommitdiff
path: root/hacks/python-playback/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/python-playback/util.py')
-rw-r--r--hacks/python-playback/util.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/hacks/python-playback/util.py b/hacks/python-playback/util.py
new file mode 100644
index 000000000..d78abdd00
--- /dev/null
+++ b/hacks/python-playback/util.py
@@ -0,0 +1,7 @@
+
+def s_to_hms(s):
+ m = int(s / 60)
+ s -= (m * 60)
+ h = int(m / 60)
+ m -= (h * 60)
+ return (h, m, s)