Skip to content

Add get_long_weekends() function to find holiday-based long weekends #2422

@Anupam11421

Description

@Anupam11421

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions