summaryrefslogtreecommitdiff
path: root/hacks/python-playback/util.py
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-02-07 12:12:01 +0000
committerCarl Hetherington <cth@carlh.net>2012-02-07 12:12:01 +0000
commit9ce56f6a2bdd076843a3b56d1cc27f3496b8528f (patch)
treef055ba1a871846d7aa2173db51a023924feaf82b /hacks/python-playback/util.py
parentb072d4a885bf02f642650a1717c69252861cc5d0 (diff)
Move some hacks into the git repo.
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)