Clone wiki

BusinessDays / Home

Business Days

A tiny class for adding or substracting number of business days to a specified date.

Installing

Just get it from mercurial repo: hg clone https://syabro@bitbucket.org/syabro/businessdays/

or download it by pressing get source from top right corner.

Usage

from datetime import date
from business_days import business_days

print date(2010, 01, 13) + business_days(5) # 2010-01-20
print date(2010, 01, 13) - business_days(10) # 2009-12-30

Updated