datethyme.DateRange
This is the documentation page for the DateRange class.
datethyme.DateRange
Bases: AbstractRange[Date]
inclusive
instance-attribute
seconds_per_step
property
__getitem__
__getitem__(idx: int) -> Date
__getitem__(idx: slice) -> DateRange
__getitem__(idx: int | slice) -> Date | DateRange
__init__
__init__(start: Date, stop: Date, step: int = 1, inclusive: bool = False)
__reversed__
__reversed__() -> DateRange
from_sequence
classmethod
from_sequence(seq: list[Date] | tuple[Date], step: int = 1, inclusive: bool = False) -> Self
gap
gap(other: DateRange, strict: bool = False) -> DateRange | None
hull
hull(other: DateRange, strict: bool = False) -> DateRange
intersection
intersection(other: DateRange, strict: bool = False) -> DateRange | None
overlap
overlap(other: DateRange, strict: bool = False) -> DateRange | None