util#

Collection of datetime and trigger related utility functions.

Author: Jendrik A. Potyka, Fabian A. Preiss

Functions

are_times_unique(timelist)

Check if list contains distinct datetime.times.

are_weekday_times_unique(weekday_list, tzinfo)

Check if list contains distinct weekday times.

days_to_weekday(wkdy_src, wkdy_dest)

Calculate the days to a specific destination weekday.

next_daily_occurrence(now, target_time)

Estimate the next daily occurrence of a given time.

next_hourly_occurrence(now, target_time)

Estimate the next hourly occurrence of a given time.

next_minutely_occurrence(now, target_time)

Estimate the next weekly occurrence of a given time.

next_weekday_time_occurrence(now, weekday, ...)

Estimate the next occurrence of a given weekday and time.