Okay so what should a business date module be able to do?
As a first cut:
- Business day arithmetic:
- Addition
- Subtraction
- Differences (how many b. days between X and Y)
- Know about holidays
- Have settable weekend day(s)
- Know about business hours
- Way to say if a given DT is during business hours
- Way to say if a given DT is a business day
Unknown:
- Week numbers?
- Week days within that?
For each setting I think there should be some defaults baked into the
module that are overridable per-site and then per-object within the
code.
I am intentionally disregarding the interface to the thing initally
until I have a better grasp of what it is expected to be able to do.
Please throw out suggestions for needed functionality,
-ben