A simple utility for calculating business time aware timedeltas between two datetimes
BusinessTime is a simple utility for calculating business time aware timedeltas between two datetimes. BusinessTime’s understanding of weekends, holidays and business hours can be easily configured in code.
>>> datetime(2013, 12, 26, 5) - datetime(2013, 12, 23, 12) datetime.timedelta(2, 61200) >>> bt = businesstime.BusinessTime(holidays=businesstime.USFederalHolidays()) >>> bt.businesstimedelta(datetime(2013, 12, 23, 12), datetime(2013, 12, 26, 5)) datetime.timedelta(1, 18000)
- Simple, pythonic, business-time-aware datetime math
- A simple declarative format for defining holidays
- A number of useful iterators/predicate functions related to holidays/weekends/business hours
- Fixed a bug (#3) where the first instant of a business day was not considered part of that day
- Fix changelog
- Fix pypi package
- Public Release
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|businesstime-0.1.3.macosx-10.8-x86_64.exe (67.6 kB) Copy SHA256 hash SHA256||Windows Installer||any||Jan 28, 2014|
|businesstime-0.1.3.tar.gz (4.2 kB) Copy SHA256 hash SHA256||Source||None||Jan 28, 2014|