beta.xbrl.xule.TimePeriod
¶
A beta.xbrl.xule.TimePeriod
class represents a duration in the XULE type system.
Base class: beta.xbrl.xule.Value
-
class
beta.xbrl.xule.
TimePeriod
(value)¶ Constructs a new
beta.xbrl.xule.TimePeriod
value object from a str or datetime.timedelta argument.
Attributes¶
-
beta.xbrl.xule.Value.
location
Returns a
beta.xbrl.xule.Location
object that represents the underlying source XBRL fact, concept, relationship, … of this XULE value.
-
beta.xbrl.xule.TimePeriod.
value
¶ Returns a datetime.timedelta object that represents the underlying XULE timespan.
Methods¶
-
beta.xbrl.xule.Value.
property
(name) Returns the given property as a
beta.xbrl.xule.Value
object.
Special methods¶
__bool__, __eq__, __float__, __ge__, __gt__, __int__, __le__, __lt__, __ne__