I think that better than taking date args, taking behavior-shaping args is probably preferable. Let the caller decide what behavior is desired for a given date, alignment of the stars, unforeseen business need, or temperature in Bermuda.
Of course this is only an opinion, and one that has been formulated with less than the full set of facts for this specific use case. :)
Dave
In reply to Re^4: Run if weekend
by davido
in thread Run if weekend
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |