From 9ce56f6a2bdd076843a3b56d1cc27f3496b8528f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 7 Feb 2012 12:12:01 +0000 Subject: Move some hacks into the git repo. --- hacks/python-playback/util.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 hacks/python-playback/util.py (limited to 'hacks/python-playback/util.py') 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) -- cgit v1.2.3