split_date_overlap_session

WorktimeCalculator.split_date_overlap_session() None[source]

Split sessions which contain midnight to to sessions.

The first lasting until midnight and the second starting at midnight.

df before:
start   end
1.1.1970 21:00:00   2.1.1970 02:00:00

df after:
start   end
1.1.1970 21:00:00   2.1.1970 00:00:00
2.1.1970 00:00:00   2.1.1970 02:00:00