Module: Holidays::PL

Defined in:
lib/holidays/pl.rb

Overview

This file is generated by the Ruby Holidays gem.

Definitions loaded: data/pl.yaml

To use the definitions in this file, load it right after you load the Holiday gem:

require 'holidays'
require 'holidays/pl'

All the definitions are available at github.com/alexdunae/holidays

Class Method Summary (collapse)

Class Method Details

+ (Object) defined_regions



15
16
17
# File 'lib/holidays/pl.rb', line 15

def self.defined_regions
  [:pl]
end

+ (Object) holidays_by_month



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/holidays/pl.rb', line 19

def self.holidays_by_month
  {
          0 => [{:function => lambda { |year| Holidays.easter(year)-52 }, :function_id => "easter(year)-52", :type => :informal, :name => "Tłusty Czwartek", :regions => [:pl]},
        {:function => lambda { |year| Holidays.easter(year)-47 }, :function_id => "easter(year)-47", :type => :informal, :name => "Ostatki", :regions => [:pl]},
        {:function => lambda { |year| Holidays.easter(year)-46 }, :function_id => "easter(year)-46", :type => :informal, :name => "Środa Popielcowa", :regions => [:pl]},
        {:function => lambda { |year| Holidays.easter(year)-7 }, :function_id => "easter(year)-7", :type => :informal, :name => "Niedziela Palmowa", :regions => [:pl]},
        {:function => lambda { |year| Holidays.easter(year)-3 }, :function_id => "easter(year)-3", :type => :informal, :name => "Wielki Czwartek", :regions => [:pl]},
        {:function => lambda { |year| Holidays.easter(year)-2 }, :function_id => "easter(year)-2", :type => :informal, :name => "Wielki Piątek", :regions => [:pl]},
        {:function => lambda { |year| Holidays.easter(year)-1 }, :function_id => "easter(year)-1", :type => :informal, :name => "Wielka Sobota", :regions => [:pl]},
        {:function => lambda { |year| Holidays.easter(year) }, :function_id => "easter(year)", :name => "Niedziela Wielkanocna", :regions => [:pl]},
        {:function => lambda { |year| Holidays.easter(year)+1 }, :function_id => "easter(year)+1", :name => "Poniedziałek Wielkanocny (Lany Poniedziałek)", :regions => [:pl]},
        {:function => lambda { |year| Holidays.easter(year)+49 }, :function_id => "easter(year)+49", :name => "Zesłanie Ducha Świętego (Zielone Świątki)", :regions => [:pl]},
        {:function => lambda { |year| Holidays.easter(year)+60 }, :function_id => "easter(year)+60", :name => "Uroczystość Najświętszego Ciała i Krwi Pańskiej (Boże Ciało)", :regions => [:pl]}],
  1 => [{:mday => 1, :name => "Nowy Rok", :regions => [:pl]},
        {:function => lambda { |year| Holidays.pl_trzech_kroli(year) }, :function_id => "pl_trzech_kroli(year)", :name => "Objawienie Pańskie (święto Trzech Króli)", :regions => [:pl]},
        {:function => lambda { |year| Holidays.pl_trzech_kroli_informal(year) }, :function_id => "pl_trzech_kroli_informal(year)", :type => :informal, :name => "Objawienie Pańskie (święto Trzech Króli)", :regions => [:pl]},
        {:mday => 21, :type => :informal, :name => "Dzień Babci", :regions => [:pl]},
        {:mday => 22, :type => :informal, :name => "Dzień Dziadka", :regions => [:pl]}],
  2 => [{:mday => 2, :type => :informal, :name => "Ofiarowanie Pańskie (Matki Boskiej Gromnicznej)", :regions => [:pl]},
        {:mday => 14, :type => :informal, :name => "Dzień Zakochanych (Walentynki)", :regions => [:pl]}],
  3 => [{:mday => 8, :type => :informal, :name => "Dzień Kobiet", :regions => [:pl]},
        {:mday => 10, :type => :informal, :name => "Dzień Mężczyzn", :regions => [:pl]}],
  4 => [{:mday => 1, :type => :informal, :name => "Prima Aprilis", :regions => [:pl]},
        {:mday => 22, :type => :informal, :name => "Międzynarodowy Dzień Ziemi", :regions => [:pl]}],
  5 => [{:mday => 1, :name => "Święto Państwowe (Święto Pracy)", :regions => [:pl]},
        {:mday => 2, :type => :informal, :name => "Dzień Flagi Rzeczpospolitej Polskiej", :regions => [:pl]},
        {:mday => 3, :name => "Święto Narodowe Trzeciego Maja", :regions => [:pl]}],
  6 => [{:mday => 23, :type => :informal, :name => "Dzień Ojca", :regions => [:pl]}],
  8 => [{:mday => 15, :name => "Wniebowzięcie Najświętszej Maryi Panny", :regions => [:pl]},
        {:mday => 15, :name => "Święto Wojska Polskiego", :regions => [:pl]}],
  9 => [{:mday => 30, :type => :informal, :name => "Dzień Chłopaka", :regions => [:pl]}],
  10 => [{:mday => 14, :type => :informal, :name => "Dzień Nauczyciela (Dzień Edukacji Narodowej)", :regions => [:pl]}],
  11 => [{:mday => 1, :name => "Wszystkich Świętych", :regions => [:pl]},
        {:mday => 2, :type => :informal, :name => "Dzień Zaduszny", :regions => [:pl]},
        {:mday => 11, :name => "Narodowe Święto Niepodległości", :regions => [:pl]},
        {:mday => 29, :type => :informal, :name => "Andrzejki", :regions => [:pl]}],
  12 => [{:mday => 4, :type => :informal, :name => "Barbórka (Dzień Górnika, Naftowca i Gazownika)", :regions => [:pl]},
        {:mday => 6, :type => :informal, :name => "Mikołajki", :regions => [:pl]},
        {:mday => 24, :type => :informal, :name => "Wigilia Bożego Narodzenia", :regions => [:pl]},
        {:mday => 25, :name => "pierwszy dzień Bożego Narodzenia", :regions => [:pl]},
        {:mday => 26, :name => "drugi dzień Bożego Narodzenia", :regions => [:pl]},
        {:mday => 31, :type => :informal, :name => "Sylwester", :regions => [:pl]}]
  }
end