Skip to content

Commit

Permalink
Update docs/source/examples.rst
Browse files Browse the repository at this point in the history
Co-authored-by: ~Jhellico <[email protected]>
Signed-off-by: Rosi <[email protected]>
  • Loading branch information
Rosi2143 and KJhellico authored Jan 9, 2025
1 parent 39c9b59 commit b353dde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ The function returns the date and the name of the holiday - exluding today.
(datetime.date(2025, 1, 20), 'Martin Luther King Jr. Day')
>>> us_holidays.get_next_holiday(previous=True) # get the previous holiday before today
(datetime.date(2025, 1, 1), "New Year's Day")
>>> us_holidays.is_working_day("2025-02-01") # get the next holiday after a specific date
>>> us_holidays.get_next_holiday("2025-02-01") # get the next holiday after a specific date
(datetime.date(2025, 2, 17), "Washington's Birthday")
>>> us_holidays.is_working_day("2025-02-01", previous=True) # get the previous holiday before a specific date
>>> us_holidays.get_next_holiday("2025-02-01", previous=True) # get the previous holiday before a specific date
(datetime.date(2025, 1, 20), 'Martin Luther King Jr. Day')
If no holiday can be found (e.g. because the date would be after the end date /
Expand Down

0 comments on commit b353dde

Please sign in to comment.