aboutsummaryrefslogtreecommitdiff
path: root/src/Watcher/time_operations.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/Watcher/time_operations.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Watcher/time_operations.py b/src/Watcher/time_operations.py
index 985a5e8..4145e8d 100755
--- a/src/Watcher/time_operations.py
+++ b/src/Watcher/time_operations.py
@@ -53,3 +53,8 @@ def convert_time(t):
else:
result = t[0:2] + 'h ' + t[3:5] + 'm ' + t[6::] + 's'
return result
+
+def convert_into_sec(t):
+ sec = int(t[0:2])*3600 + int(t[3:5])*60 + int(t[6::])
+ return sec
+