wilsonfreitas / python-bizdays

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

Helper functions to load a list of holidays #9

Closed wilsonfreitas closed 10 years ago

wilsonfreitas commented 10 years ago

Develop helper functions to load list of dates in any format stored in text files.

load_dates(file, formats=(format1, format2))

formatn should be specified with regular expressions.

wilsonfreitas commented 10 years ago

I've implemented Calendar.load_holidays, but without formats. I think a better implementation would be Calendar.load_holidays(fname, format='%Y-%m-%d')

wilsonfreitas commented 10 years ago

Done!