0
How to check if the schedule_working is within the chosen range? Example: a bar runs from 08:00 to 13:00, a user has chosen the time interval from 12:00 to 21:00, such as checking that this bar is open in the chosen time range?
var intervalo_escolhido = [12,21];
var horario_funcionamento = [08,13];
I need to perform the test with the 2 working hours values.
– Daywison Ferreira Leal
It is the same question as the previous one, simply have to use the solution presented twice.
– Isac
Or use a for or foreach if the working hour vector has a variable size
– Leandro Angelo