TimeInWeek Class

Time in a week.

Inheritance
TimeInWeek

Constructor

TimeInWeek(*, day: Optional[Union[str, _models.WeekDay]] = None, hour_slots: Optional[List[int]] = None, **kwargs)

Variables

day
str or WeekDay

The day of the week. Known values are: "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday".

hour_slots
list[int]

Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range.