Skip to content

hello_world.init

This is the documentation page for hello_world.__init__.py.

datethyme.HourRange

Bases: AbstractRange[Time]

Sequence of hours, behaving roughly analogously to the built-in range object.

Example: time0 = Time.parse("05:00") time0 = Time.parse("14:00") hours: TimeHourRange = time0 ** time1

_current instance-attribute

_current = start

inclusive instance-attribute

inclusive = inclusive

last property

last: Time

start instance-attribute

start = start

step instance-attribute

step = step

stop instance-attribute

stop = stop

__contains__

__contains__(other: Time) -> bool

__getitem__

__getitem__(idx: int) -> Time

__init__

__init__(start: Time, stop: Time, step: int = 1, inclusive: bool = True, allow_wraparound: bool = True)

__len__

__len__() -> int

__reversed__

__reversed__() -> Self

_increment

_increment() -> None

_increment_bounded

_increment_bounded() -> None

index

index(item: Time) -> int