businesstime icon indicating copy to clipboard operation
businesstime copied to clipboard

A simple python utility for calculating business time aware timedeltas between two datetimes

Results 12 businesstime issues
Sort by recently updated
recently updated
newest added

- Change iter days methods to be able to have d1 > d2 - Add method to add/substract business to a date. Ex : "today + 48 business hours" -...

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...

enhancement

I have created a child class that will inherit from the business time class such that you can now pass in a list of 7 tuples indicating the business hours...

Everything breaks with tz-aware datetimes. It would be good to take an optional tzinfo and to cast the datetimes into that TZ automatically.

``` import businesstime bt = businesstime.BusinessTime((time(9), time(18)), (5, 6), holidays=None) t = bt.businesstimedelta(datetime.now(), datetime.now() + timedelta(days=1, hours=-4)) #t = bt.businesstimedelta(datetime.now() - timedelta(days=1), datetime.now() + timedelta(days=0, hours=0)) t = bt.businesstimedelta(datetime.now() -...

First of all, thank you very much for your work on this library. I found myself slightly confused when trying to extract business hours from the timedelta result. `>>> d1...

Hi, i think could be a problem in the Lead-years https://github.com/seatgeek/businesstime/blob/master/businesstime/holidays/__init__.py#L9

bug