-
-
Notifications
You must be signed in to change notification settings - Fork 676
Add get_long_weekends() function to find holiday-based long weekends #2422
Copy link
Copy link
Closed
Labels
Description
Feature description
I'd like to suggest a new feature: a utility function named get_long_weekends().
This function will help users easily find long weekends in a specific year and country by:
- Checking for holidays that fall on a Friday or a Monday.
- Combining them with adjacent weekends to return a list of long weekends.
- Optionally, it can also suggest "potential" long weekends (e.g. if a holiday falls on Thursday or Tuesday and a user can take an extra day off).
Use case
This can be useful for users who want to plan vacations or breaks in advance. Especially helpful for travel planning, HR teams, and people managing calendars based on public holidays.
Additional context
I'm currently going through the codebase and would love to implement this as part of my GSoC 2025 journey. I've already contributed once and would love to take this up with proper testing and documentation.
Let me know if it sounds good — I can create a PR once it's approved.
Thanks!
— Anupam Tiwari
Reactions are currently unavailable