PyDateTime Object

A Python object, representing an instant in time.

Comments

PyDateTime is a sub-class of the regular datetime.datetime object. It is subclassed so it can provide a somewhat backwards compatible PyDateTime::Format method, but is otherwise identical. Functions accepting a PyDateTime object also accept a datetime.datetime object. A PyDateTime object can be created via pywintypes::Time.

Migration note: pywin32 builds for Python 2 used an (incompatible) PyTime object instad of datetime.

Methods

Format
Formats the time value - an alias for strftime with a default param.