Skip to content

datethyme.DateRange

This is the documentation page for the DateRange class.

datethyme.DateRange

Bases: AbstractRange[Date]

days property

days: int

hours property

hours: float

inclusive instance-attribute

inclusive = inclusive

last property

last: Date

minutes property

minutes: float

seconds property

seconds: float

start instance-attribute

start = start

step instance-attribute

step = step

stop instance-attribute

stop = stop

with_end property

with_end: Self

without_end property

without_end: Self

__contains__

__contains__(d: Date)

__getitem__

__getitem__(sli: slice) -> DateRange

__hash__

__hash__() -> int

__init__

__init__(start: Date, stop: Date, step: int = 1, inclusive: bool = False)

__iter__

__iter__()

__len__

__len__()

__repr__

__repr__()

__reversed__

__reversed__() -> DateRange

_increment

_increment() -> None

count

count(d: Date) -> int

gap

gap(other: DateRange, strict: bool = False) -> DateRange | None

hull

hull(other: DateRange, strict: bool = False) -> DateRange

index

index(item: Date) -> int

intersection

intersection(other: DateRange, strict: bool = False) -> DateRange | None

overlap

overlap(other: DateRange, strict: bool = False) -> DateRange | None