Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MidsummerHoliday #9

Closed
ckunki opened this issue Jun 4, 2021 · 1 comment · Fixed by #25
Closed

Add MidsummerHoliday #9

ckunki opened this issue Jun 4, 2021 · 1 comment · Fixed by #25
Labels
enhancement New feature or request

Comments

@ckunki
Copy link
Collaborator

ckunki commented Jun 4, 2021

Required for scandinavian countries.
In order to support holidays like in

@ckunki ckunki added the enhancement New feature or request label Jun 4, 2021
@ckunki
Copy link
Collaborator Author

ckunki commented Jun 8, 2021

Original code:

(let ((midsommar-d
       (calendar-dayname-on-or-before
	6 (calendar-absolute-from-gregorian (list 6 26 displayed-year)))))
  (list (calendar-gregorian-from-absolute midsommar-d) "Midsommardagen")
  (list (calendar-gregorian-from-absolute (1- midsommar-d)) "Midsommarafton")
  (list
   (calendar-gregorian-from-absolute
    (calendar-dayname-on-or-before
     6 (calendar-absolute-from-gregorian (list 11 6 displayed-year))))
   "Alla helgons dag"))))

Interpretation

holiday float 1 Sat before JUN 26 Midsommardagen
holiday float 1 Sat before JUN 26 -1 Midsommarafton
holiday float 1 Sun before NOV 6 Alla helgons dag

Formula 2 for Midsommarafton requires a new flavor "float with offset".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant