seatgeek / businesstime

A simple python utility for calculating business time aware timedeltas between two datetimes
BSD 2-Clause "Simplified" License
85 stars 36 forks source link

More flexible specification for business hours #1

Open erwaller opened 10 years ago

erwaller commented 10 years ago

Currently you can only specify a pair of open and close times which apply on non-weekend, non-holiday days. It'd be useful to have open and close times which vary by day of the week, time of the year, etc.

Also, the concept of weekend days is fairly arbitrary. It probably makes sense to take this extension of the concept of flexible business hours to support days with no business hours, and have that replace the concept of weekends.

dreaquil commented 4 years ago

Made a pull request for a child class that should resolve the first issue described above.https://github.com/seatgeek/businesstime/pull/35