Yasumi\Provider\Germany::calculateGermanUnityDay PHP Метод

calculateGermanUnityDay() публичный Метод

The Day of German Unity (German: Tag der Deutschen Einheit) is the national day of Germany, celebrated on 3 October as a public holiday. It commemorates the anniversary of German reunification in 1990, when the goal of a united Germany that originated in the middle of the 19th century, was fulfilled again. Therefore, the name addresses neither the re-union nor the union, but the unity of Germany. The Day of German Unity on 3 October has been the German national holiday since 1990, when the reunification was formally completed. It is a legal holiday for the Federal Republic of Germany.
    public function calculateGermanUnityDay()
    {
        if ($this->year >= 1990) {
            $this->addHoliday(new Holiday('germanUnityDay', ['de_DE' => 'Tag der Deutschen Einheit'], new DateTime($this->year . '-10-3', new \DateTimeZone($this->timezone)), $this->locale));
        }
    }