wilsonfreitas / python-bizdays

Business days calculations and utilities
http://wilsonfreitas.github.io/python-bizdays/
MIT License
80 stars 34 forks source link

Add `now` argument to getdate #21

Open wilsonfreitas opened 8 years ago

wilsonfreitas commented 8 years ago

getdate has the following default call.

getdate(self, expr, year, month=None)

Instead of using year and month arguments it should use a now argument to specify where it is in time.

getdate(self, expr, now=datetime.today())