Skip to content

datethyme.TimeSpan

This is the documentation page for the TimeSpan class.

datethyme.TimeSpan

Bases: AbstractSpan[Time]

_end instance-attribute

_end = end

_name instance-attribute

_name = name

_start instance-attribute

_start = start

days property

days: float

end property

end: Time

hours property

hours: float

id property

id: str

minutes property

minutes: float

name property

name: str

seconds property

seconds: float

span property

span: TimeSpan

start property

start: Time

__bool__

__bool__() -> bool

__contains__

__contains__(other) -> bool

__eq__

__eq__(other) -> bool

__hash__

__hash__() -> int

__init__

__init__(start: Time, end: Time, name: str | None = None) -> None

hull

hull(other: Time | TimeSpan, strict: bool = False) -> TimeSpan

intersection

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

subdivide

subdivide()