Support the ongoing development of →
Database Eloquent Laravel
Last updated 1 year ago.

So, I finally end up doing another bit parser for the working hours, 1 bit each half hour. So I have 48 bits, if its open at that time, you have 1, otherwise 0. Since my need is for business hours (stores), I don't mind it to be each half hour, no store has a opening or closing time like 22:10, so it works.

I'll make an article with the code and approach.


Solution selected by @ngenen

Sign in to participate in this thread!


Your banner here too?

Nicolas Genen ngenen Joined 9 Sep 2022


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.