First working release.

Other files (not .docx) support is not guaranteed
This commit is contained in:
BarsTiger
2023-02-06 21:40:47 +02:00
parent 2a189cc689
commit 13b48be802
21 changed files with 1378 additions and 143 deletions

View File

@@ -0,0 +1,9 @@
import datetime
def compute_time_diff(date_first, time_first,
date_second, time_second):
dt1 = datetime.datetime.combine(date_first, time_first)
dt2 = datetime.datetime.combine(date_second, time_second)
return int((max(dt1, dt2) - min(dt1, dt2)).total_seconds() / 60)