xbrl.PeriodAspectValue

The PeriodAspectValue class represents a value for the period aspect. The constructor takes the following arguments: PeriodAspectValue( DTS dts, start = None, end = None )

INSTANT Denotes that the period represents a point in time. DURATION Denotes that the period represents a duration with a start point and end point. FOREVER Denotes that the period represents a duration without a start point or end point.

class xbrl.PeriodAspectValue(DTS dts=None, start=None, end=None)

Attributes

xbrl.PeriodAspectValue.end

If period_type is DURATION, it returns a datetime.datetime object representing the duration end point. Otherwise it returns None.

xbrl.PeriodAspectValue.instant

If period_type is INSTANT, it returns a datetime.datetime object representing the single point in time. Otherwise it returns None.

xbrl.PeriodAspectValue.period_type

Returns INSTANT, DURATION, or FOREVER.

xbrl.PeriodAspectValue.start

If period_type is DURATION, it returns a datetime.datetime object representing the duration start point. Otherwise it returns None.

Special methods

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