Added containsDate() and normaliseDateTime() functions to DateRange.

normaliseDateTime() allows you to normalise the Time portion of a Date
to either the first second of a Date, the last second of a Date, or
midday on a Date.