mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 21:45:25 +08:00
30 lines
1.1 KiB
Ruby
Vendored
30 lines
1.1 KiB
Ruby
Vendored
# encoding: utf-8
|
|
module Holidays
|
|
# This file is generated by the Ruby Holidays gem.
|
|
#
|
|
# Definitions loaded: definitions/nerc.yaml
|
|
#
|
|
# All the definitions are available at https://github.com/holidays/holidays
|
|
module NERC # :nodoc:
|
|
def self.defined_regions
|
|
[:nerc]
|
|
end
|
|
|
|
def self.holidays_by_month
|
|
{
|
|
1 => [{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "New Year's Day", :regions => [:nerc]}],
|
|
5 => [{:wday => 1, :week => -1, :name => "Memorial Day", :regions => [:nerc]}],
|
|
7 => [{:mday => 4, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Independence Day", :regions => [:nerc]}],
|
|
9 => [{:wday => 1, :week => 1, :name => "Labor Day", :regions => [:nerc]}],
|
|
11 => [{:wday => 4, :week => 4, :name => "Thanksgiving", :regions => [:nerc]}],
|
|
12 => [{:mday => 25, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Christmas Day", :regions => [:nerc]}]
|
|
}
|
|
end
|
|
|
|
def self.custom_methods
|
|
{
|
|
|
|
}
|
|
end
|
|
end
|
|
end
|