Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhozic committed Sep 12, 2024
1 parent ef2b7ce commit 33618f8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/daf/message/messageperiod.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ class NamedDayOfYearPeriod(EveryXPeriod):
----------
.. code-block:: python
# Every second monday of December at 12:00.
# Every second Monday of December at 12:00.
NamedDayOfYearPeriod(
time=time(hour=12), # Time
day="Mon", # Day (Monday)
Expand Down Expand Up @@ -377,8 +377,6 @@ class NamedDayOfMonthPeriod(EveryXPeriod):
The day of week when to send.
week: int
The week number of which to send. E.g., 1 for 1st week, 2 for second week.
month: 1 - 12
The month in which to send.
next_send_time: datetime | timedelta
Represents the time at which the message should first be sent.
Use ``datetime`` to specify the exact date and time at which the message should start being sent.
Expand All @@ -389,12 +387,11 @@ class NamedDayOfMonthPeriod(EveryXPeriod):
----------
.. code-block:: python
# Every second monday of December at 12:00.
NamedDayOfYearPeriod(
# Second Monday of every month at 12:00.
NamedDayOfMonthPeriod(
time=time(hour=12), # Time
day="Mon", # Day (Monday)
week=2, # Which week (second monday)
month=12 # Month (December)
)
"""
DAYS = Literal["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
Expand Down

0 comments on commit 33618f8

Please sign in to comment.