xsd.dateTime

The xsd.dateTime class represents instants of time, optionally marked with a particular time zone offset.

Base class: xsd.anyAtomicType -> xsd.anySimpleType

class xsd.dateTime(lexical_value=None)

Attributes

xsd.dateTime.day

Returns the day part of the xsd.datetime value as native int.

xsd.dateTime.hour

Returns the hour part of the xsd.datetime value as native int.

xsd.dateTime.minute

Returns the minute part of the xsd.datetime value as native int.

xsd.dateTime.month

Returns the month part of the xsd.datetime value as native int.

xsd.dateTime.second

Returns the second part of the xsd.datetime value as decimal.Decimal.

xsd.dateTime.timezoneOffset

Returns the timezone offset part of the xsd.datetime value in form of mintues in the range of -840 to 840 as native int.

xsd.dateTime.value

Returns the xsd.datetime value as datetime.datetime.

xsd.dateTime.year

Returns the year part of the xsd.datetime value as native int.

Special methods

__eq__, __ge__, __gt__, __le__, __lt__, __ne__