11.20.3 DateTime Objects
Keywords: lib

##
11.20.3 DateTime Objects

This class may initialized from date in seconds since the epoch, a time tuple, or an ISO 8601 time/date string. It has the following methods, supported mainly for internal use by the marshalling/unmarshalling code:

`decode`(string)
  Accept a string as the instance's new time value.

`encode`(out)
  Write the XML-RPC encoding of this DateTime item to the out stream object.

It also supports certain of Python's built-in operators through `_cmp__` and `__repr__` methods.