xsd.dayTimeDuration
¶
The xsd.dayTimeDuration
class represents duration of time in form of seconds. It is derived from xsd.duration
by
restricting the xsd.duration.months
property to 0.
Base class: xsd.duration
-> xsd.anyAtomicType
-> xsd.anySimpleType
-
class
xsd.
dayTimeDuration
(value)¶
Attributes¶
-
xsd.anySimpleType.
lexical_value
Returns the lexical representation of the datatype as native str.
-
xsd.dayTimeDuration.
months
¶ Returns the months part of the dayTimeDuration dataype as decimal.Decimal. This is always 0.
-
xsd.dayTimeDuration.
seconds
¶ Returns the seconds part of the dayTimeDuration datatype as decimal.Decimal.
-
xsd.dayTimeDuration.
value
¶ Returns the dayTimeDuration value as datetime.timedelta.
Methods¶
-
xsd.anySimpleType.
is_boolean
() Returns True if the datatype object is of type boolean.
-
xsd.anySimpleType.
is_decimal
() Returns True if the datatype object is of type decimal or derived from type decimal.
-
xsd.anySimpleType.
is_double
() Returns True if the datatype object is of type double.
-
xsd.anySimpleType.
is_duration
() Returns True if the datatype object is of type duration.
-
xsd.anySimpleType.
is_float
() Returns True if the datatype object is of type float.
-
xsd.anySimpleType.
is_integer
() Returns True if the datatype object is of type decimal or derived from type integer.
-
xsd.anySimpleType.
is_numeric
() Returns True if the datatype object is a numeric type.
-
xsd.anySimpleType.
is_string
() Returns True if the datatype object is a string type.
Special methods¶
__bool__, __eq__, __float__, __ge__, __gt__, __int__, __le__, __lt__, __ne__