Good morning, fellow programmers. I would like help, I have a mysql database with a certain amount of users, and I need to get the range of hours (ex: 10:00 p.m. to 2:00 p.m.) and divide by the number of users, and then set the value divided for each user. That is, suppose I have 4 users, divide the time interval and give one hour for each. So I need this division result to be entered for the users.
Ex: It divides the interval (10:00 to 14:00), and assigns to each user.
user1 = 10:00 a.m. to 10:59:59
user2 = 11:00 a.m. to 11:59:59
user3 = 12:00 at 12:59:59
user4 = 1:00 p.m. to 2:00 p.m.