So I have the program saving work start and end times into a database like so:
id worker_id start end
1351 7 2013-06-26 08:00:00 2013-06-26 17:00:00
It saves te times for each day separately, and what I need to do is get the working hours for a worker in a period of time set in a form, for example one month.
Any ideas?