add code for checking dates/days of week

Will be used as part of the quitter eventually.
Merge branch 'master' of https://github.com/130610/sd-project