Skip to content

datethyme.DateTimeSpan

This is the documentation page for the DateTimeSpan class.

datethyme.DateTimeSpan

Bases: AbstractSpan[DateTime]

_end instance-attribute

_end = end

_name instance-attribute

_name = name

_start instance-attribute

_start = start

days property

days: float

end property

end: DateTime

hours property

hours: float

minutes property

minutes: float

name property

name: str

seconds property

seconds: float

span property

span: DateTimeSpan

start property

start: DateTime

__bool__

__bool__() -> bool

__contains__

__contains__(other) -> bool

__eq__

__eq__(other) -> bool

__hash__

__hash__() -> int

__init__

__init__(start: DateTime, end: DateTime, name: str | None = None)

from_dates classmethod

from_dates(start: Date, end: Date) -> Self

subdivide

subdivide()