2019-05-30 12:17:48 +02:00
|
|
|
|
2019-05-30 16:12:51 +02:00
|
|
|
|
2019-05-30 12:49:27 +02:00
|
|
|
def hoursSpent(day_start, day_end, break_start, break_end):
|
|
|
|
duration_whole = day_end - day_start
|
|
|
|
print("duration_whole", duration_whole)
|
|
|
|
pause = break_end - break_start
|
|
|
|
print("pause", pause)
|
|
|
|
duration_without_pause = duration_whole - pause
|
2019-05-30 15:03:02 +02:00
|
|
|
print("duration_without_pause", duration_without_pause)
|
2019-05-30 12:49:27 +02:00
|
|
|
|
|
|
|
return duration_without_pause
|