Answer the question
In order to leave comments, you need to log in
Schedule for the week by the hour, how to store?
Schedule
An example of an array in code with a schedule.
[
'mo' => [0,1,5,6,7],
'sa' => [5,6,7],
'fr' => [0,1,7],
]
Answer the question
In order to leave comments, you need to log in
If it's just binary free/busy, you can store a whole day as a 24-bit mask, a single integer. Each bit means vacancy resp. hours.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question