Implement something like this:
calculate_weekenddays_between(timestamp1, timestamp2): calculates the number of saturdays and sundays between timestamp1 and timestamp2
calculate_nonweekendhoursbetween(timestamp1, timestamp2): calculates the hours between two timestamps excluding saturdays and sundays. This probably would be: timestamp2 - timestamp1 - calculate_weekenddays_between(timestamp1, timestamp2)
Both Functions should operate on Python datetime objects and return timedelta objects.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) The code produced should follow PEP 8 - "Style Guide for Python Code" and result in a pylint score of 8 or more. It also should come with Unittests using coverage.py. 3) Use of OpenSource Software is encouraged. Your code will be published undder a BSD like license so you can use it in other projects.
## Platform
MAcOS X.4/FreeBSD 5.4, Python 2.4