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

Accomodate for early workers #5

Closed pilz closed 10 years ago

pilz commented 10 years ago

Hi,

thanks for this package, this has saved me today. Working early in the morning, I found one hole, I guess.

The code checks for the case that the time delta starts after business hours. Extending the check to also check of the delta actually stops before before business hours.

If that doesn't happen, a timespan in the early hours will have the whole day get counted.

Best! Alex

pilz commented 10 years ago

Typo, closing