xsd.yearMonthDuration¶
The xsd.yearMonthDuration class represents durations of time in form of whole years and months. It is derived from xsd.duration
by restricting the xsd.duration.seconds property to 0.
Base class: xsd.duration -> xsd.anyAtomicType -> xsd.anySimpleType
-
class
xsd.yearMonthDuration¶
Attributes¶
-
xsd.yearMonthDuration.months¶ Returns the months part of the
xsd.yearMonthDurationvalue as decimal.Decimal.
-
xsd.yearMonthDuration.seconds¶ Returns the seconds part of the
xsd.yearMonthDurationvalue as decimal.Decimal. This is always 0.
Special methods¶
__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__