Skip to content

Duration

Source code in docs_src/capo_connectscheduling/types/duration.py
class Duration(TypedDict, closed=True):
    value: "capo_connectscheduling.types.duration_value.DurationValue"
    """<p>The number of units of time. You can use a negative value to report an overdrawn balance. The value must be within 876,000 hours (100 years) of zero: at most 52,560,000 <code>MINUTES</code>, 876,000 <code>HOURS</code>, or 36,500 <code>DAYS</code>.</p>"""
    unit: "capo_connectscheduling.types.duration_unit.DurationUnit"
    """<p>The unit the value is counted in.</p>"""

unit instance-attribute

The unit the value is counted in.

value instance-attribute

The number of units of time. You can use a negative value to report an overdrawn balance. The value must be within 876,000 hours (100 years) of zero: at most 52,560,000 MINUTES, 876,000 HOURS, or 36,500 DAYS.