if my character works between 11pm and 3am his last hour of work is going to be numerically less than his first hour of work.
The system has to also account for normal work hours 9am-5pm
Also if the days of work were mon-fri:
Then at 2am on saturday morning the character would stop work because
saturday is not listed as a day of work
But really the character should keep working until 3am
you could set a switch at 11pm to start work but what happens if the character is knocked out or busy until 11.30pm then the switch will never be set and he will not attempt to start work
The system has to also account for normal work hours 9am-5pm
Also if the days of work were mon-fri:
Then at 2am on saturday morning the character would stop work because
saturday is not listed as a day of work
But really the character should keep working until 3am
you could set a switch at 11pm to start work but what happens if the character is knocked out or busy until 11.30pm then the switch will never be set and he will not attempt to start work