This commit is contained in:
Michael Beck
2023-06-23 15:57:31 +02:00
parent 599202ae4d
commit 88c016a2a6
4 changed files with 101 additions and 126 deletions

View File

@ -21,4 +21,12 @@ def get_Tslices(ts_beg, ts_end, no_slices):
'end_time': (ts_beg + ts_dif * i + ts_dif - timedelta(microseconds=1)).strftime('%Y-%m-%dT%H:%M:%SZ'),
'suffix': f'-slice{i+1}'
})
return time_slices
return time_slices
# For log time conversions (seconds to days, hours, minutes)
def convertTime(duration):
days, seconds = duration.days, duration.seconds
hours = days * 24 + seconds // 3600
minutes = (seconds % 3600) // 60
seconds = (seconds % 60)
return hours, minutes, seconds