aboutsummaryrefslogtreecommitdiff
path: root/src/Watcher/time_operations.py
diff options
context:
space:
mode:
authorLibravatar Waishnav <[email protected]>2022-03-11 23:40:58 +0530
committerLibravatar Waishnav <[email protected]>2022-03-11 23:40:58 +0530
commit0a411d21a4fe70a6db8496114a6dd49dd4cf345a (patch)
tree5828be461f9f0556c1ac4b485906dbfdb29fb40a /src/Watcher/time_operations.py
parent76405c161762626fe8aece13c2758f68c837ceb9 (diff)
downloadshopno-os-log-sync-0a411d21a4fe70a6db8496114a6dd49dd4cf345a.tar.gz
shopno-os-log-sync-0a411d21a4fe70a6db8496114a6dd49dd4cf345a.zip
updating executable file and added function in time_operation module
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
+