Fix for Y10k problem
Test for date range extremes
Merge pull request #480 from benighted/master

Fix for Y10k problem, see issue #441.