Date - Add Working Hours when outside 08:00 to 18:00

May 14, 2013 at 7:42 PM

When I add 1 working hour to a datetime, which then causes that datetime to fall outside of working hours (08:00 to 18:00), I can see that the time is rolled forward to the next available working hour.

e.g. if I add 1 hour to 17:15 the time returned is actually 08:00 on the next working day, not 18:15.

However I am using this library to process SLA times for case completion. I would like to add 1 hour to a datatime which would then allocate all available minutes to the remaining working day

e.g. if I add 1 hour to 17:15 I would like the time returned to be 08:15 the next day.

Is this at all possible?