mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 02:59:07 +08:00
31 lines
1.3 KiB
Ruby
Vendored
31 lines
1.3 KiB
Ruby
Vendored
# encoding: utf-8
|
|
module Holidays
|
|
# This file is generated by the Ruby Holidays gem.
|
|
#
|
|
# Definitions loaded: definitions/ae.yaml
|
|
#
|
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
module AE # :nodoc:
|
|
def self.defined_regions
|
|
[:ae]
|
|
end
|
|
|
|
def self.holidays_by_month
|
|
{
|
|
1 => [{:mday => 1, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "New Year's Day", :regions => [:ae]}],
|
|
6 => [{:mday => 17, :year_ranges => { :limited => [2024] },:name => "Eid al-Adha", :regions => [:ae]},
|
|
{:mday => 18, :year_ranges => { :limited => [2024] },:name => "Eid al-Adha (Day 2)", :regions => [:ae]},
|
|
{:mday => 19, :year_ranges => { :limited => [2024] },:name => "Eid al-Adha (Day 3)", :regions => [:ae]}],
|
|
12 => [{:mday => 1, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "Commemoration Day", :regions => [:ae]},
|
|
{:mday => 2, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "National Day", :regions => [:ae]},
|
|
{:mday => 3, :observed => "to_weekday_if_weekend(date)", :observed_arguments => [:date], :name => "National Day (Day 2)", :regions => [:ae]}]
|
|
}
|
|
end
|
|
|
|
def self.custom_methods
|
|
{
|
|
|
|
}
|
|
end
|
|
end
|
|
end
|