kuu.scheduler.schedule._impl.on_day

Module Contents

Classes

on_day

Constrains firing to specific days of the month (1-31).

API

class kuu.scheduler.schedule._impl.on_day.on_day(*days: int)[source]

Bases: kuu.scheduler.schedule.abc.Schedule

Constrains firing to specific days of the month (1-31).

Example:

on_day(1, 15) & at(time(9, 0))   # 1st and 15th of each month at 09:00

Initialization

matches(dt: datetime.datetime) bool[source]
next_after(now: datetime.datetime) datetime.datetime[source]