Skip to main content
1 vote

Calculate time interval excluding breaks

The code is too complicated, difficult to maintain and error-prone. Here is a cleaner solution: Create a table of time periods, with break flag: Start End Break 00:00 03:45 false 03:45 04:45 true ...
Basil Peace's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible