dimanche 12 février 2017

Function to find all timeslots between 2 given times

Vote count: 0

I have an array of timeframes, for example these:

[
    start_time => 09:00,
    end_time => 11:00
    available => 1
],
[
    start_time => 11:00,
    end_time => 12:00
    available => 0
],
[
    start_time => 12:00,
    end_time => 18:00,
    available => 1
]

I need a function that finds if between times X and Y the user is available or not. How could I achieve that?

asked 48 secs ago

Let's block ads! (Why?)



Function to find all timeslots between 2 given times

Aucun commentaire:

Enregistrer un commentaire