Python Library Reference
Previous: Up: 18.24 xmlrpclib Next:


18.24.3 DateTime Objects

This class may be initialized with seconds since the epoch, a time tuple, an ISO 8601 time/date string, or a datetime .datetime, datetime .date or datetime .time instance. 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.


Python Library Reference
Previous: Up: 18.24 xmlrpclib Next:

Release 2.5.2, documentation updated on 21st February, 2008.
See About this document... for information on suggesting changes.

AltStyle によって変換されたページ (->オリジナル) /