12 lines
356 B
Python
12 lines
356 B
Python
|
|
|
|
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
|
|
print("duration_without_pause", duration_without_pause)
|
|
|
|
return duration_without_pause
|