WIP: Improve date comparisons generally.

This will close #52 once I've got it ready, but it's going to require a reasonable amount of testing before I'm happy with it—notably because in different places, date output will need to be different. (Also because I can't count, and dates and times are very, very confusing to me.)