0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/plugins/discourse-calendar/vendor/holidays/lib/generated_definitions/ke.rb
2025-07-15 16:38:05 +02:00

34 lines
1.8 KiB
Ruby
Vendored

# encoding: utf-8
module Holidays
# This file is generated by the Ruby Holidays gem.
#
# Definitions loaded: definitions/ke.yaml
#
# All the definitions are available at https://github.com/holidays/holidays
module KE # :nodoc:
def self.defined_regions
[:ke]
end
def self.holidays_by_month
{
0 => [{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Good Friday", :regions => [:ke]},
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Easter Monday", :regions => [:ke]}],
1 => [{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "New Year's Day", :regions => [:ke]}],
5 => [{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Labour Day", :regions => [:ke]}],
6 => [{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Madaraka Day", :regions => [:ke]}],
10 => [{:mday => 10, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Huduma Day", :regions => [:ke]},
{:mday => 20, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Mashujaa Day", :regions => [:ke]}],
12 => [{:mday => 12, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Jamhuri Day", :regions => [:ke]},
{:mday => 25, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Christmas Day", :regions => [:ke]},
{:mday => 26, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Utamaduni Day", :regions => [:ke]}]
}
end
def self.custom_methods
{
}
end
end
end