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 observed holidays for Denmark #104

Merged
merged 1 commit into from
May 13, 2018

Conversation

c960657
Copy link
Contributor

@c960657 c960657 commented Apr 21, 2018

The provider for Denmark currently supports what are usually known as holidays (hellidage).

Other days days are also observed:

  1. Lukkeloven (the Opening Hours Act) is the law defines when shops are allowed to stay open. In addition to the above mentioned holidays, the law prohibits most shops from staying open on Constitution Day (5 June), Christmas Eve, New Year's Eve (partially) after 15:00, so shop staff have these days off. Others usually do not work on Christmas Eve and New Year's Eve, though this is not covered by any legislation.
  2. Labour Day (1 May) is not mentioned in any legislation, but for people working under a trade union agreement (80% of the work force does that), either Constitution Day or Labour Day (depending on local/industry agreements) is a day off (except of course for police officers, nurses, taxi drivers etc. who also work on weekends).

Also, Denmark observes daylight saving time.

@c960657 c960657 mentioned this pull request Apr 21, 2018
@@ -57,7 +57,7 @@ public function initialize()
$this->addHoliday($this->christmasEve($this->year, $this->timezone, $this->locale, Holiday::TYPE_OFFICIAL));
$this->addHoliday($this->christmasDay($this->year, $this->timezone, $this->locale));
$this->addHoliday($this->secondChristmasDay($this->year, $this->timezone, $this->locale));
$this->addNewYearsEve();
$this->addHoliday($this->newYearsEve($this->year, $this->timezone, $this->locale));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this change be excluded from this PR since it isn't related to Denmark?

Copy link
Contributor Author

@c960657 c960657 May 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both Denmark and Latvia (and many other countries) celebrate New Year's Eve, so I moved newYearsEve() to CommonHolidays to allow reuse. So there is no reason to keep a duplicate implementation in the Latvia class.

@stelgenhof stelgenhof merged commit 3cd739f into azuyalabs:develop May 13, 2018
@c960657 c960657 deleted the denmark-observed branch January 11, 2019 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants