| # encoding: UTF-8 |
| |
| module Holiday |
| |
| def self.find(year, month) |
| Hash[@@data.find_all {|y, m, d, t| year==y and month==m}. |
| group_by {|y, m, d, t| d}. |
| map {|d, list| [d, list.map {|y, m, d, t| t}]}] |
| end |
| |
| # http://www.timeanddate.com/holidays/us/ |
| @@data = [ |
| [2015, 1, 1, "New Year's Day"], |
| [2015, 1, 3, "The Prophet's Birthday"], |
| [2015, 1, 4, "World Braille Day"], |
| [2015, 1, 6, "Epiphany"], |
| [2015, 1, 7, "Orthodox Christmas Day"], |
| [2015, 1, 7, "International Programmers' Day"], |
| [2015, 1, 13, "Stephen Foster Memorial Day"], |
| [2015, 1, 14, "Orthodox New Year"], |
| [2015, 1, 16, "Lee Jackson Day"], |
| [2015, 1, 18, "World Religion Day"], |
| [2015, 1, 19, "Martin Luther King Day"], |
| [2015, 1, 19, "Robert E Lee's Birthday"], |
| [2015, 1, 19, "Confederate Memorial Day"], |
| [2015, 1, 19, "Idaho Human Rights Day"], |
| [2015, 1, 19, "Civil Rights Day"], |
| [2015, 1, 25, "World Leprosy Day"], |
| [2015, 1, 26, "International Customs Day"], |
| [2015, 1, 27, "International Day of Commemoration in Memory of the Victims of the Holocaust"], |
| [2015, 1, 27, "e-Day"], |
| [2015, 1, 29, "Kansas Day"], |
| [2015, 2, 1, "National Freedom Day"], |
| [2015, 2, 2, "World Wetlands Day"], |
| [2015, 2, 2, "Groundhog Day"], |
| [2015, 2, 4, "Tu Bishvat/Tu B'Shevat"], |
| [2015, 2, 4, "World Cancer Day"], |
| [2015, 2, 4, "Rosa Parks Day"], |
| [2015, 2, 6, "International Day of Zero Tolerance to Female Genital Mutilation"], |
| [2015, 2, 6, "National Wear Red Day"], |
| [2015, 2, 7, "e-Day"], |
| [2015, 2, 11, "World Day of the Sick"], |
| [2015, 2, 12, "Lincoln's Birthday"], |
| [2015, 2, 13, "World Radio Day"], |
| [2015, 2, 13, "Friday the 13th"], |
| [2015, 2, 14, "Valentine's Day"], |
| [2015, 2, 15, "Susan B Anthony's Birthday"], |
| [2015, 2, 16, "Presidents' Day"], |
| [2015, 2, 16, "Daisy Gatson Bates Day"], |
| [2015, 2, 17, "Shrove Tuesday/Mardi Gras"], |
| [2015, 2, 18, "Ash Wednesday"], |
| [2015, 2, 19, "Chinese New Year"], |
| [2015, 2, 20, "World Day of Social Justice"], |
| [2015, 2, 21, "International Mother Language Day"], |
| [2015, 3, 1, "Zero Discrimination Day"], |
| [2015, 3, 1, "Self-injury Awareness Day"], |
| [2015, 3, 1, "St. David's Day"], |
| [2015, 3, 2, "Texas Independence Day"], |
| [2015, 3, 2, "Casimir Pulaski Day"], |
| [2015, 3, 2, "Read Across America Day"], |
| [2015, 3, 3, "World Wildlife Day"], |
| [2015, 3, 3, "Town Meeting Day Vermont"], |
| [2015, 3, 5, "Purim"], |
| [2015, 3, 6, "Employee Appreciation Day"], |
| [2015, 3, 8, "Daylight Saving Time starts"], |
| [2015, 3, 8, "International Women's Day"], |
| [2015, 3, 12, "World Kidney Day"], |
| [2015, 3, 13, "Friday the 13th"], |
| [2015, 3, 14, "Pi Day"], |
| [2015, 3, 17, "St. Patrick's Day"], |
| [2015, 3, 17, "Evacuation Day"], |
| [2015, 3, 20, "March equinox"], |
| [2015, 3, 20, "International Day of Happiness"], |
| [2015, 3, 21, "International Day for the Elimination of Racial Discrimination"], |
| [2015, 3, 21, "World Poetry Day"], |
| [2015, 3, 21, "International Day of Nowruz"], |
| [2015, 3, 21, "World Down Syndrome Day"], |
| [2015, 3, 21, "International Day of Forests"], |
| [2015, 3, 22, "World Water Day"], |
| [2015, 3, 23, "World Meteorological Day"], |
| [2015, 3, 24, "World Tuberculosis Day"], |
| [2015, 3, 24, "International Day for the Right to the Truth concerning Gross Human Rights Violations and for the Dignity of Victims"], |
| [2015, 3, 25, "International Day of Remembrance of Slavery Victims and the Transatlantic Slave Trade"], |
| [2015, 3, 25, "International Day of Solidarity with Detained and Missing Staff Members"], |
| [2015, 3, 25, "Maryland Day"], |
| [2015, 3, 26, "Prince Jonah Kuhio Kalanianaole Day"], |
| [2015, 3, 28, "Earth Hour"], |
| [2015, 3, 29, "Palm Sunday"], |
| [2015, 3, 30, "Seward's Day"], |
| [2015, 3, 31, "César Chávez Day"], |
| [2015, 4, 1, "April Fool's Day"], |
| [2015, 4, 2, "Maundy Thursday"], |
| [2015, 4, 2, "World Autism Awareness Day"], |
| [2015, 4, 2, "Pascua Florida Day"], |
| [2015, 4, 3, "Good Friday"], |
| [2015, 4, 4, "Holy Saturday"], |
| [2015, 4, 4, "Passover"], |
| [2015, 4, 4, "United Nations' Mine Awareness Day"], |
| [2015, 4, 5, "Easter Sunday"], |
| [2015, 4, 6, "International Day of Sport for the Development of Peace"], |
| [2015, 4, 6, "Easter Monday"], |
| [2015, 4, 6, "National Tartan Day"], |
| [2015, 4, 7, "United Nations' World Health Day"], |
| [2015, 4, 7, "Day of Remembrance of the Victims of the Rwanda Genocide"], |
| [2015, 4, 10, "Orthodox Good Friday"], |
| [2015, 4, 11, "Last Day of Passover"], |
| [2015, 4, 11, "Orthodox Holy Saturday"], |
| [2015, 4, 12, "Orthodox Easter"], |
| [2015, 4, 12, "International Day of Human Space Flight"], |
| [2015, 4, 13, "Orthodox Easter Monday"], |
| [2015, 4, 13, "Thomas Jefferson's Birthday"], |
| [2015, 4, 15, "Yom HaShoah"], |
| [2015, 4, 15, "Tax Day"], |
| [2015, 4, 15, "Father Damien Day"], |
| [2015, 4, 16, "Emancipation Day"], |
| [2015, 4, 17, "Global Youth Service Day"], |
| [2015, 4, 18, "International Day for Monuments and Sites"], |
| [2015, 4, 20, "Chinese Language Day"], |
| [2015, 4, 20, "Patriot's Day"], |
| [2015, 4, 21, "San Jacinto Day"], |
| [2015, 4, 21, "National Library Workers' Day"], |
| [2015, 4, 22, "Earth Day"], |
| [2015, 4, 22, "Oklahoma Day"], |
| [2015, 4, 22, "Administrative Professionals Day"], |
| [2015, 4, 23, "Yom Ha'atzmaut"], |
| [2015, 4, 23, "World Book and Copyright Day"], |
| [2015, 4, 23, "English Language Day"], |
| [2015, 4, 24, "Arbor Day"], |
| [2015, 4, 25, "World Malaria Day"], |
| [2015, 4, 26, "World Intellectual Property Day"], |
| [2015, 4, 26, "Confederate Memorial Day"], |
| [2015, 4, 27, "Confederate Memorial Day"], |
| [2015, 4, 28, "World Day for Safety and Health at Work"], |
| [2015, 4, 29, "Day of Remembrance for all Victims of Chemical Warfare"], |
| [2015, 4, 30, "International Jazz Day"], |
| [2015, 5, 1, "Law Day"], |
| [2015, 5, 1, "Loyalty Day"], |
| [2015, 5, 2, "National Explosive Ordnance Disposal Day"], |
| [2015, 5, 3, "World Press Freedom Day"], |
| [2015, 5, 4, "Rhode Island Independence Day"], |
| [2015, 5, 5, "Cinco de Mayo"], |
| [2015, 5, 5, "Primary Election Day Indiana"], |
| [2015, 5, 6, "National Nurses Day"], |
| [2015, 5, 7, "Lag BaOmer"], |
| [2015, 5, 7, "National Day of Prayer"], |
| [2015, 5, 8, "Time of Remembrance and Reconciliation for Those Who Lost Their Lives during the Second World War"], |
| [2015, 5, 8, "World Ovarian Cancer Day"], |
| [2015, 5, 8, "Truman Day"], |
| [2015, 5, 9, "World Migratory Bird Day"], |
| [2015, 5, 10, "Mothers' Day"], |
| [2015, 5, 10, "Confederate Memorial Day"], |
| [2015, 5, 11, "Confederate Memorial Day observed"], |
| [2015, 5, 14, "Ascension Day"], |
| [2015, 5, 15, "International Day of Families"], |
| [2015, 5, 15, "Peace Officers Memorial Day"], |
| [2015, 5, 15, "National Defense Transportation Day"], |
| [2015, 5, 16, "Isra and Mi'raj"], |
| [2015, 5, 16, "Armed Forces Day"], |
| [2015, 5, 17, "World Information Society Day"], |
| [2015, 5, 20, "World Autoimmune Arthritis Day"], |
| [2015, 5, 20, "Emergency Medical Services for Children Day"], |
| [2015, 5, 21, "World Day for Cultural Diversity for Dialogue and Development"], |
| [2015, 5, 22, "International Day for Biological Diversity"], |
| [2015, 5, 22, "National Maritime Day"], |
| [2015, 5, 22, "Harvey Milk Day"], |
| [2015, 5, 23, "International Day to End Obstetric Fistula"], |
| [2015, 5, 24, "Pentecost"], |
| [2015, 5, 24, "Shavuot"], |
| [2015, 5, 25, "Whit Monday"], |
| [2015, 5, 25, "African Liberation Day"], |
| [2015, 5, 25, "Towel Day"], |
| [2015, 5, 25, "Memorial Day"], |
| [2015, 5, 25, "Jefferson Davis Birthday"], |
| [2015, 5, 25, "National Missing Children's Day"], |
| [2015, 5, 29, "International Day of United Nations Peacekeepers"], |
| [2015, 5, 31, "Trinity Sunday"], |
| [2015, 5, 31, "World No Tobacco Day"], |
| [2015, 6, 1, "Global Day of Parents"], |
| [2015, 6, 1, "Day of Vesak"], |
| [2015, 6, 1, "Statehood Day"], |
| [2015, 6, 1, "Jefferson Davis Birthday"], |
| [2015, 6, 3, "Jefferson Davis Birthday"], |
| [2015, 6, 4, "Corpus Christi"], |
| [2015, 6, 4, "International Day of Innocent Children Victims of Aggression"], |
| [2015, 6, 5, "World Environment Day"], |
| [2015, 6, 6, "D-Day"], |
| [2015, 6, 8, "World Oceans Day"], |
| [2015, 6, 11, "Kamehameha Day"], |
| [2015, 6, 12, "World Day Against Child Labour"], |
| [2015, 6, 14, "World Blood Donor Day"], |
| [2015, 6, 14, "Flag Day"], |
| [2015, 6, 15, "World Elder Abuse Awareness Day"], |
| [2015, 6, 17, "World Day to Combat Desertification and Drought"], |
| [2015, 6, 17, "Bunker Hill Day"], |
| [2015, 6, 18, "Ramadan starts"], |
| [2015, 6, 19, "Juneteenth"], |
| [2015, 6, 19, "Emancipation Day"], |
| [2015, 6, 20, "World Refugee Day"], |
| [2015, 6, 20, "West Virginia Day"], |
| [2015, 6, 21, "June Solstice"], |
| [2015, 6, 21, "Fathers' Day"], |
| [2015, 6, 23, "Public Service Day"], |
| [2015, 6, 23, "International Widows' Day"], |
| [2015, 6, 25, "Day of the Seafarer"], |
| [2015, 6, 26, "International Day Against Drug Abuse and Illicit Trafficking"], |
| [2015, 6, 26, "International Day in Support of Victims of Torture"], |
| [2015, 7, 3, "Independence Day observed"], |
| [2015, 7, 4, "International Day of Cooperatives"], |
| [2015, 7, 4, "Independence Day"], |
| [2015, 7, 11, "World Population Day"], |
| [2015, 7, 13, "Lailat al-Qadr"], |
| [2015, 7, 18, "Eid al-Fitr"], |
| [2015, 7, 18, "Nelson Mandela Day"], |
| [2015, 7, 22, "Pi Approximation Day"], |
| [2015, 7, 24, "Pioneer Day"], |
| [2015, 7, 26, "Tisha B'Av"], |
| [2015, 7, 26, "Parents' Day"], |
| [2015, 7, 28, "World Hepatitis Day"], |
| [2015, 7, 30, "International Day of Friendship"], |
| [2015, 8, 1, "Colorado Day"], |
| [2015, 8, 9, "International Day of the World's Indigenous People"], |
| [2015, 8, 10, "Victory Day"], |
| [2015, 8, 12, "International Youth Day"], |
| [2015, 8, 15, "Assumption of Mary"], |
| [2015, 8, 16, "Bennington Battle Day"], |
| [2015, 8, 17, "Bennington Battle Day observed"], |
| [2015, 8, 19, "World Humanitarian Day"], |
| [2015, 8, 19, "National Aviation Day"], |
| [2015, 8, 21, "Statehood Day in Hawaii"], |
| [2015, 8, 21, "Senior Citizens Day"], |
| [2015, 8, 23, "International Day for the Remembrance of the Slave Trade and its Abolition"], |
| [2015, 8, 26, "Women's Equality Day"], |
| [2015, 8, 27, "Lyndon Baines Johnson Day"], |
| [2015, 8, 29, "International Day against Nuclear Tests"], |
| [2015, 8, 30, "International Day of the Victims of Enforced Disappearances"], |
| [2015, 8, 31, "International Overdose Awareness Day"], |
| [2015, 9, 5, "International Day of Charity"], |
| [2015, 9, 7, "Labor Day"], |
| [2015, 9, 8, "International Literacy Day"], |
| [2015, 9, 9, "California Admission Day"], |
| [2015, 9, 10, "World Suicide Prevention Day"], |
| [2015, 9, 11, "Patriot Day"], |
| [2015, 9, 12, "International Day for South-South Cooperation"], |
| [2015, 9, 12, "Carl Garner Federal Lands Cleanup Day"], |
| [2015, 9, 13, "International Programmers' Day"], |
| [2015, 9, 13, "National Grandparents Day"], |
| [2015, 9, 14, "Rosh Hashana"], |
| [2015, 9, 15, "International Day of Democracy"], |
| [2015, 9, 16, "International Day for the Preservation of the Ozone Layer"], |
| [2015, 9, 17, "Constitution Day and Citizenship Day"], |
| [2015, 9, 18, "National POW/MIA Recognition Day"], |
| [2015, 9, 19, "International Talk Like a Pirate Day"], |
| [2015, 9, 21, "International Day of Peace"], |
| [2015, 9, 22, "Emancipation Day"], |
| [2015, 9, 23, "Yom Kippur"], |
| [2015, 9, 23, "September equinox"], |
| [2015, 9, 23, "International Celebrate Bisexuality Day"], |
| [2015, 9, 24, "Eid al-Adha"], |
| [2015, 9, 24, "World Maritime Day"], |
| [2015, 9, 25, "Native Americans' Day"], |
| [2015, 9, 26, "World Day against Trafficking Persons"], |
| [2015, 9, 26, "International Day for the Total Elimination of Nuclear Weapons"], |
| [2015, 9, 27, "World Tourism Day"], |
| [2015, 9, 27, "Gold Star Mother's Day"], |
| [2015, 9, 28, "First Day of Sukkot"], |
| [2015, 9, 28, "World Rabies Day"], |
| [2015, 9, 29, "World Heart Day"], |
| [2015, 10, 1, "International Day of Older Persons"], |
| [2015, 10, 2, "International Day of Non-Violence"], |
| [2015, 10, 4, "Feast of St Francis of Assisi"], |
| [2015, 10, 4, "Last Day of Sukkot"], |
| [2015, 10, 5, "Shmini Atzeret"], |
| [2015, 10, 5, "World Teachers' Day"], |
| [2015, 10, 5, "World Habitat Day"], |
| [2015, 10, 5, "Child Health Day"], |
| [2015, 10, 6, "Simchat Torah"], |
| [2015, 10, 7, "World Cerebral Palsy Day"], |
| [2015, 10, 8, "World Sight Day"], |
| [2015, 10, 9, "World Post Day"], |
| [2015, 10, 9, "Leif Erikson Day"], |
| [2015, 10, 10, "World Mental Health Day"], |
| [2015, 10, 11, "International Day of the Girl Child"], |
| [2015, 10, 12, "Columbus Day"], |
| [2015, 10, 12, "Native Americans' Day"], |
| [2015, 10, 12, "Indigenous People's Day"], |
| [2015, 10, 14, "International Day for Natural Disaster Reduction"], |
| [2015, 10, 15, "Muharram"], |
| [2015, 10, 15, "International Day of Rural Women"], |
| [2015, 10, 15, "White Cane Safety Day"], |
| [2015, 10, 16, "World Food Day"], |
| [2015, 10, 16, "Boss's Day"], |
| [2015, 10, 17, "International Day for the Eradication of Poverty"], |
| [2015, 10, 18, "Alaska Day"], |
| [2015, 10, 19, "Alaska Day observed"], |
| [2015, 10, 24, "United Nations Day"], |
| [2015, 10, 24, "World Development Information Day"], |
| [2015, 10, 27, "World Day for Audiovisual Heritage"], |
| [2015, 10, 29, "World Stroke Day"], |
| [2015, 10, 30, "Nevada Day"], |
| [2015, 10, 31, "Halloween"], |
| [2015, 11, 1, "All Saints' Day"], |
| [2015, 11, 1, "Daylight Saving Time ends"], |
| [2015, 11, 2, "All Souls' Day"], |
| [2015, 11, 2, "International Day to End Impunity for Crimes against Journalists"], |
| [2015, 11, 3, "Election Day"], |
| [2015, 11, 6, "International Day for Preventing the Exploitation of the Environment in War and Armed Conflict"], |
| [2015, 11, 10, "World Science Day for Peace and Development"], |
| [2015, 11, 11, "Veterans Day"], |
| [2015, 11, 11, "Diwali/Deepavali"], |
| [2015, 11, 12, "World Pneumonia Day"], |
| [2015, 11, 13, "Friday the 13th"], |
| [2015, 11, 14, "World Diabetes Day"], |
| [2015, 11, 15, "World Day of Remembrance for Road Traffic Victims"], |
| [2015, 11, 16, "International Day for Tolerance"], |
| [2015, 11, 17, "World Prematurity Day"], |
| [2015, 11, 19, "World Philosophy Day"], |
| [2015, 11, 19, "World Toilet Day"], |
| [2015, 11, 19, "International Men's Day"], |
| [2015, 11, 20, "Universal Children's Day"], |
| [2015, 11, 20, "Africa Industrialization Day"], |
| [2015, 11, 21, "World Television Day"], |
| [2015, 11, 25, "International Day for the Elimination of Violence against Women"], |
| [2015, 11, 26, "Thanksgiving Day"], |
| [2015, 11, 27, "Robert E Lee's Birthday"], |
| [2015, 11, 27, "Presidents' Day"], |
| [2015, 11, 27, "Lincoln's Birthday/Lincoln's Day"], |
| [2015, 11, 27, "Black Friday"], |
| [2015, 11, 27, "American Indian Heritage Day"], |
| [2015, 11, 29, "First Sunday of Advent"], |
| [2015, 11, 29, "International Day of Solidarity with the Palestinian People"], |
| [2015, 11, 30, "Cyber Monday"], |
| [2015, 12, 1, "World AIDS Day"], |
| [2015, 12, 2, "International Day for the Abolition of Slavery"], |
| [2015, 12, 3, "International Day of Persons with Disabilities"], |
| [2015, 12, 5, "International Volunteer Day for Economic and Social Development"], |
| [2015, 12, 5, "World Soil Day"], |
| [2015, 12, 6, "St Nicholas' Day"], |
| [2015, 12, 7, "Chanukah/Hanukkah"], |
| [2015, 12, 7, "International Civil Aviation Day"], |
| [2015, 12, 7, "Pearl Harbor Remembrance Day"], |
| [2015, 12, 8, "Feast of the Immaculate Conception"], |
| [2015, 12, 9, "International Anti-Corruption Day"], |
| [2015, 12, 10, "Human Rights Day"], |
| [2015, 12, 11, "International Mountain Day"], |
| [2015, 12, 12, "Feast of Our Lady of Guadalupe"], |
| [2015, 12, 14, "Last Day of Chanukah"], |
| [2015, 12, 17, "Pan American Aviation Day"], |
| [2015, 12, 17, "Wright Brothers Day"], |
| [2015, 12, 18, "International Migrants Day"], |
| [2015, 12, 18, "Arabic Language Day"], |
| [2015, 12, 20, "International Human Solidarity Day"], |
| [2015, 12, 22, "December Solstice"], |
| [2015, 12, 24, "The Prophet's Birthday"], |
| [2015, 12, 24, "Christmas Eve"], |
| [2015, 12, 24, "Washington's Birthday"], |
| [2015, 12, 25, "Christmas Day"], |
| [2015, 12, 26, "Kwanzaa"], |
| [2015, 12, 26, "Day After Christmas Day"], |
| [2015, 12, 31, "New Year's Eve"] |
| ] |
| end |