beta.xbrl.xule.Duration
¶
A beta.xbrl.xule.Duration
class represents a period with a start and end date in the XULE type system.
Base class: beta.xbrl.xule.Value
- class beta.xbrl.xule.Duration(start, end)¶
Constructs a new
beta.xbrl.xule.Duration
value object from the str, datetime.date or datetime.datetime arguments.
Attributes¶
- beta.xbrl.xule.Duration.end¶
Returns a datetime.datetime object that represents the end underlying XULE duration.
- 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.Duration.start¶
Returns a datetime.datetime object that represents the start of the underlying XULE duration.
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__