Timespan¶
- 
class lsst.daf.butler.Timespan¶
- Bases: - tuple- A 2-element named tuple for time intervals. - Parameters: - Attributes Summary - begin- Minimum timestamp in the interval (inclusive). - end- Maximum timestamp in the interval (exclusive). - Methods Summary - count($self, value, /)- Return number of occurrences of value. - difference(other)- Return the one or two timespans that cover the interval(s) that are in - selfbut not- other.- index($self, value[, start, stop])- Return first index of value. - intersection()- Return a new - Timespanthat is contained by all of the given ones.- overlaps(other)- Test whether this timespan overlaps another. - Attributes Documentation - Methods Documentation - 
count($self, value, /)¶
- Return number of occurrences of value. 
 - 
difference(other: lsst.daf.butler.core.timespan.Timespan) → Iterator[lsst.daf.butler.core.timespan.Timespan]¶
- Return the one or two timespans that cover the interval(s) that are in - selfbut not- other.- This is implemented as an iterator because the result may be zero, one, or two - Timespanobjects, depending on the relationship between the operands.- Parameters: - other : Timespan
- Timespan to subtract. 
 - Yields: 
- other : 
 - 
index($self, value, start=0, stop=sys.maxsize, /)¶
- Return first index of value. - Raises ValueError if the value is not present. 
 - 
intersection() → Optional[lsst.daf.butler.core.timespan.Timespan]¶
- Return a new - Timespanthat is contained by all of the given ones.- Parameters: - *args
- All positional arguments are - Timespaninstances.
 - Returns: 
 - 
overlaps(other: lsst.daf.butler.core.timespan.Timespan) → Any¶
- Test whether this timespan overlaps another. - Parameters: - other : Timespan
- Another timespan whose begin and end values can be compared with those of - selfwith the- >=operator, yielding values that can be passed to- ops.or_and/or- ops.and_.
 - Returns: 
- other : 
 
-