holidays.countries.sweden

Sweden(*args, include_sundays=True, **kwargs)

Bases: HolidayBase, ChristianHolidays, InternationalHolidays

Sweden holidays.

References

In Sweden, ALL sundays are considered a holiday. Initialize this class with include_sundays=False to not include sundays as a holiday.

Supported holiday categories:

  • PUBLIC: Official public holidays with general time off
  • DE_FACTO: Holidays treated equivalently to public holidays by law
  • BANK: Banking institution holidays
  • OPTIONAL: Optional or cultural observances
The DE_FACTO category includes
  • Midsommarafton (Midsummer Eve)
  • Julafton (Christmas Eve)
  • Nyårsafton (New Year's Eve)

According to Swedish Annual Leave Law (SFS 1977:480, Section 7): "Med söndag jämställs allmän helgdag samt midsommarafton, julafton och nyårsafton" (Sundays are equivalent to public holidays as well as Midsummer's Eve, Christmas Eve, and New Year's Eve).

These holidays are not official public holidays but must be treated as non-working days. For accurate is_working_day() calculations, use: Sweden(categories=(PUBLIC, DE_FACTO))

Parameters:
  • include_sundays (bool, default: True ) –

    Whether to consider sundays as a holiday (which they are in Sweden)

begin_time_label = tr('%s (från kl. 14.00)') class-attribute instance-attribute

country = 'SE' class-attribute instance-attribute

default_language = 'sv' class-attribute instance-attribute

start_year = 1953 class-attribute instance-attribute

supported_categories = (BANK, DE_FACTO, OPTIONAL, PUBLIC) class-attribute instance-attribute

supported_languages = ('en_US', 'sv', 'th', 'uk') class-attribute instance-attribute

include_sundays = include_sundays instance-attribute

SE(*args, include_sundays=True, **kwargs)

Bases: Sweden

Parameters:
  • include_sundays (bool, default: True ) –

    Whether to consider sundays as a holiday (which they are in Sweden)

SWE(*args, include_sundays=True, **kwargs)

Bases: Sweden

Parameters:
  • include_sundays (bool, default: True ) –

    Whether to consider sundays as a holiday (which they are in Sweden)