uataq.timerange#

Time range handling.

TimeRange normalizes the several ways a caller can ask for a period (a string, a (start, stop) pair, a list, a slice, or None for everything) into a start and a stop.

Attributes

TimeObject

One end of a time range.

TimeRangeTuple

A (start, stop) tuple of two time objects.

TimeRangeList

A [start, stop] list of two time objects.

TimeRangeTypes

Every form of the time_range argument.

Classes

TimeRange

TimeRange class to represent a time range with start and stop times.