Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
ENH: BusinessHour to support multiple opening and closing times per day #15481
BusinessHour supports arbitrary start and end times. But some businesses open and close more than once per day. Some examples:
Many use cases could be satisfied by just two opens and two closes per day, but it might be just as well to support any amount.
It could be done using arrays or lists for
Or it could be done using a single 2D set of start and end times:
Personally I'd be happy with either. Once constructed, usage should be exactly the same. For example if I add one
ok doesn't seem unreasonable. I had a brief look at the current impl. It does seem that this could be done in a back-compat way, though might be some semantic confusions, e.g. since open can now occur multiple times per day.
so would take a community PR to do this!