From 0a411d21a4fe70a6db8496114a6dd49dd4cf345a Mon Sep 17 00:00:00 2001 From: Waishnav Date: Fri, 11 Mar 2022 23:40:58 +0530 Subject: updating executable file and added function in time_operation module --- src/Watcher/time_operations.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Watcher/time_operations.py') 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 + -- cgit v1.2.3