uataq.timerange.TimeRange#
- class uataq.timerange.TimeRange(time_range=None, start=None, stop=None)[source]#
TimeRange class to represent a time range with start and stop times.
- __init__(time_range=None, start=None, stop=None)[source]#
Initialize a TimeRange object with the specified time range.
- Raises:
ValueError – If
time_rangeis given together withstartorstop, or it is not a string, a pair, a slice or aTimeRange.
Attributes
Start of the range, or None when unbounded. |
|
End of the range, or None when unbounded. |
|
Length of the range in seconds. |
Methods
|
Parse an ISO 8601 time string into a datetime. |