xsd.duration

The xsd.duration class represents durations of time. The durations are specified in form of months and seconds.

Base class: xsd.anyAtomicType -> xsd.anySimpleType

class xsd.duration

Attributes

xsd.duration.months

Returns the months part of the xsd.duration value as decimal.Decimal.

xsd.duration.seconds

Returns the seconds part of the xsd.duration value as decimal.Decimal.

Special methods

__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__