48 lines
3.2 KiB
Ruby
48 lines
3.2 KiB
Ruby
module Holidays
|
|
# This file is generated by the Ruby Holiday gem.
|
|
#
|
|
# Definitions loaded: data/dk.yaml
|
|
#
|
|
# To use the definitions in this file, load them right after you load the
|
|
# Holiday gem:
|
|
#
|
|
# require 'holidays'
|
|
# require 'holidays/dk'
|
|
#
|
|
# More definitions are available at http://code.dunae.ca/holidays.
|
|
module DK # :nodoc:
|
|
DEFINED_REGIONS = [:dk]
|
|
|
|
HOLIDAYS_BY_MONTH = {
|
|
5 => [{:mday => 1, :name => "Arbejdernes kampdag", :regions => [:dk]},
|
|
{:mday => 5, :type => :informal, :name => "Danmarks befrielse", :regions => [:dk]}],
|
|
0 => [{:function => lambda { |year| Holidays.easter(year)-49 }, :function_id => "easter(year)-49", :type => :informal, :name => "Fastelavn", :regions => [:dk]},
|
|
{:function => lambda { |year| Holidays.easter(year)-7 }, :function_id => "easter(year)-7", :name => "Palmesøndag", :regions => [:dk]},
|
|
{:function => lambda { |year| Holidays.easter(year)-3 }, :function_id => "easter(year)-3", :name => "Skærtorsdag", :regions => [:dk]},
|
|
{:function => lambda { |year| Holidays.easter(year)-2 }, :function_id => "easter(year)-2", :name => "Langfredag", :regions => [:dk]},
|
|
{:function => lambda { |year| Holidays.easter(year) }, :function_id => "easter(year)", :name => "Påskedag", :regions => [:dk]},
|
|
{:function => lambda { |year| Holidays.easter(year)+1 }, :function_id => "easter(year)+1", :name => "2. påskedag", :regions => [:dk]},
|
|
{:function => lambda { |year| Holidays.easter(year)+26 }, :function_id => "easter(year)+26", :name => "Store Bededag", :regions => [:dk]},
|
|
{:function => lambda { |year| Holidays.easter(year)+39 }, :function_id => "easter(year)+39", :name => "Kristi Himmelfartsdag", :regions => [:dk]},
|
|
{:function => lambda { |year| Holidays.easter(year)+49 }, :function_id => "easter(year)+49", :name => "Pinsedag", :regions => [:dk]},
|
|
{:function => lambda { |year| Holidays.easter(year)+50 }, :function_id => "easter(year)+50", :name => "2. Pinsedag", :regions => [:dk]}],
|
|
11 => [{:mday => 10, :type => :informal, :name => "Mortensaften", :regions => [:dk]}],
|
|
6 => [{:mday => 5, :name => "Grundlovsdag", :regions => [:dk]},
|
|
{:mday => 15, :type => :informal, :name => "Valdemarsdag og Genforeningsdag", :regions => [:dk]},
|
|
{:mday => 23, :type => :informal, :name => "Sankt Hans aften", :regions => [:dk]}],
|
|
1 => [{:mday => 1, :name => "Nytårsdag", :regions => [:dk]}],
|
|
12 => [{:mday => 13, :type => :informal, :name => "Sankt Lucia", :regions => [:dk]},
|
|
{:mday => 24, :name => "Juleaftensdag", :regions => [:dk]},
|
|
{:mday => 25, :name => "1. juledag", :regions => [:dk]},
|
|
{:mday => 26, :name => "2. juledag", :regions => [:dk]}],
|
|
4 => [{:mday => 1, :type => :informal, :name => "1. april", :regions => [:dk]},
|
|
{:mday => 9, :type => :informal, :name => "Danmarks besættelse", :regions => [:dk]},
|
|
{:mday => 16, :type => :informal, :name => "Dronningens fødselsdag", :regions => [:dk]}]
|
|
}
|
|
end
|
|
|
|
|
|
end
|
|
|
|
Holidays.merge_defs(Holidays::DK::DEFINED_REGIONS, Holidays::DK::HOLIDAYS_BY_MONTH)
|