Update holidays and add flagdays and namedays for Sweden
ClosedPublic

Authored by riiga on Dec 22 2019, 11:06 PM.

Details

Summary

Holidays for Sweden have been corrected and updated. Flag days have been added along with a few other significant cultural days. A separate name day calendar has been added. Where known, support has been added for holidays in the recent past.

Test Plan

Tested locally with the testholidayregions tool for syntax errors.

Diff Detail

Repository
R175 KHolidays
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
riiga created this revision.Dec 22 2019, 11:06 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptDec 22 2019, 11:06 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
riiga requested review of this revision.Dec 22 2019, 11:06 PM

Try to use
[easter] + 50 days

Example (from Italian holidays):

"Ascensione (Chiesa Cattolica)" religious on ((year >= 1977) ? ([easter] + 42 days): noop)

https://cgit.kde.org/kholidays.git/tree/holidays/plan2/holiday_it_it?#n47

riiga updated this revision to Diff 72048.Dec 23 2019, 9:19 AM
riiga edited the summary of this revision. (Show Details)

Fixed Annandag pingst calculation.

winterz accepted this revision.Jan 27 2020, 10:40 PM

looks fine.
I also tested and the changes don't break anything.

This revision is now accepted and ready to land.Jan 27 2020, 10:40 PM
This revision was automatically updated to reflect the committed changes.