Refactored _set_lower_value() from method to function.
Fixed bug in _datetime_to_tuple().

See the comment for more detail.
Updated tests.

Moving the creating of the datetime objects into setUp() gave a speed boost of
roughly 400%. Ok.
Ignoring backup/swap files of editors.