Added support for datetime .date and .time objects.

Added additional support for datetime .date and .time objects
to write_datetime(). For issue #3.