holidays.countries.china

China(*args, **kwargs)

Bases: ObservedHolidayBase, ChineseCalendarHolidays, InternationalHolidays, StaticHolidays

China holidays.

References
Checked With
Limitations
  • Only checked with the official General Office of the State Council Notice from 2001 onwards.
  • Due to its complexity, need yearly checks 3-weeks before year's end each year.

country = 'CN' class-attribute instance-attribute

estimated_label = tr('%s(推定)') class-attribute instance-attribute

observed_estimated_label = tr('%s(观察日,推定)') class-attribute instance-attribute

observed_label = tr('%s(观察日)') class-attribute instance-attribute

supported_categories = (PUBLIC, HALF_DAY) class-attribute instance-attribute

default_language = 'zh_CN' class-attribute instance-attribute

supported_languages = ('en_US', 'th', 'zh_CN', 'zh_TW') class-attribute instance-attribute

start_year = 1950 class-attribute instance-attribute

CN(*args, **kwargs)

Bases: China

CHN(*args, **kwargs)

Bases: China

ChinaStaticHolidays

substituted_date_format = tr('%Y-%m-%d') class-attribute instance-attribute

substituted_label = tr('休息日(%s日起取代)') class-attribute instance-attribute

chinese_new_year = tr('春节') class-attribute instance-attribute

chinese_new_year_extended = tr('春节延长假期') class-attribute instance-attribute

dragon_boat_festival = tr('端午节') class-attribute instance-attribute

mid_autumn_festival = tr('中秋节') class-attribute instance-attribute

victory_70_anniversary = tr('中国人民抗日战争暨世界反法西斯战争胜利70周年纪念日') class-attribute instance-attribute

special_public_holidays = {2001: ((JAN, 29, JAN, 20), (JAN, 30, JAN, 21), (MAY, 4, APR, 28), (MAY, 7, APR, 29), (OCT, 4, SEP, 29), (OCT, 5, SEP, 30)), 2002: ((JAN, 2, DEC, 29, 2001), (JAN, 3, DEC, 30, 2001), (FEB, 15, FEB, 9), (FEB, 18, FEB, 10), (MAY, 6, APR, 27), (MAY, 7, APR, 28), (OCT, 4, SEP, 28), (OCT, 7, SEP, 29)), 2003: ((FEB, 6, FEB, 8), (FEB, 7, FEB, 9), (MAY, 6, APR, 26), (MAY, 7, APR, 27), (OCT, 6, SEP, 27), (OCT, 7, SEP, 28)), 2004: ((JAN, 27, JAN, 17), (JAN, 28, JAN, 18), (MAY, 6, MAY, 8), (MAY, 7, MAY, 9), (OCT, 6, OCT, 9), (OCT, 7, OCT, 10)), 2005: ((FEB, 14, FEB, 5), (FEB, 15, FEB, 6), (MAY, 5, APR, 30), (MAY, 6, MAY, 8), (OCT, 6, OCT, 8), (OCT, 7, OCT, 9)), 2006: ((JAN, 3, DEC, 31, 2005), (FEB, 2, JAN, 28), (FEB, 3, FEB, 5), (MAY, 4, APR, 29), (MAY, 5, APR, 30), (OCT, 5, SEP, 30), (OCT, 6, OCT, 8)), 2007: ((JAN, 2, DEC, 30, 2006), (JAN, 3, DEC, 31, 2006), (FEB, 22, FEB, 17), (FEB, 23, FEB, 25), (MAY, 4, APR, 28), (MAY, 7, APR, 29), (OCT, 4, SEP, 29), (OCT, 5, SEP, 30), (DEC, 31, DEC, 29)), 2008: ((FEB, 11, FEB, 2), (FEB, 12, FEB, 3), (MAY, 2, MAY, 4), (SEP, 29, SEP, 27), (SEP, 30, SEP, 28)), 2009: ((JAN, 2, JAN, 4), (JAN, 29, JAN, 24), (JAN, 30, FEB, 1), (MAY, 29, MAY, 31), (OCT, 7, SEP, 27), (OCT, 8, OCT, 10)), 2010: ((FEB, 18, FEB, 20), (FEB, 19, FEB, 21), (JUN, 14, JUN, 12), (JUN, 15, JUN, 13), (SEP, 23, SEP, 19), (SEP, 24, SEP, 25), (OCT, 6, SEP, 26), (OCT, 7, OCT, 9)), 2011: ((FEB, 7, JAN, 30), (FEB, 8, FEB, 12), (APR, 4, APR, 2), (OCT, 6, OCT, 8), (OCT, 7, OCT, 9)), 2012: ((JAN, 3, DEC, 31, 2011), (JAN, 26, JAN, 21), (JAN, 27, JAN, 29), (APR, 2, MAR, 31), (APR, 3, APR, 1), (APR, 30, APR, 28), (OCT, 5, SEP, 29)), 2013: ((JAN, 2, JAN, 5), (JAN, 3, JAN, 6), (FEB, 14, FEB, 16), (FEB, 15, FEB, 17), (APR, 5, APR, 7), (APR, 29, APR, 27), (APR, 30, APR, 28), (JUN, 10, JUN, 8), (JUN, 11, JUN, 9), (SEP, 20, SEP, 22), (OCT, 4, SEP, 29), (OCT, 7, OCT, 12)), 2014: ((FEB, 5, JAN, 26), (FEB, 6, FEB, 8), (MAY, 2, MAY, 4), (OCT, 6, SEP, 28), (OCT, 7, OCT, 11)), 2015: ((JAN, 2, JAN, 4), (FEB, 18, FEB, 15), (FEB, 24, FEB, 28), (SEP, 3, victory_70_anniversary), (SEP, 4, SEP, 6), (OCT, 7, OCT, 10)), 2016: ((FEB, 11, FEB, 6), (FEB, 12, FEB, 14), (JUN, 10, JUN, 12), (SEP, 16, SEP, 18), (OCT, 6, OCT, 8), (OCT, 7, OCT, 9)), 2017: ((JAN, 27, JAN, 22), (FEB, 2, FEB, 4), (APR, 3, APR, 1), (MAY, 29, MAY, 27), (OCT, 6, SEP, 30)), 2018: ((FEB, 15, FEB, 11), (FEB, 21, FEB, 24), (APR, 6, APR, 8), (APR, 30, APR, 28), (OCT, 4, SEP, 29), (OCT, 5, SEP, 30), (DEC, 31, DEC, 29)), 2019: ((FEB, 4, FEB, 2), (FEB, 8, FEB, 3), (OCT, 4, SEP, 29), (OCT, 7, OCT, 12)), 2020: ((JAN, 24, JAN, 19), (JAN, 31, chinese_new_year_extended), (FEB, 1, chinese_new_year_extended), (FEB, 2, chinese_new_year_extended), (MAY, 4, APR, 26), (MAY, 5, MAY, 9), (JUN, 26, JUN, 28), (OCT, 7, SEP, 27), (OCT, 8, OCT, 10)), 2021: ((FEB, 11, FEB, 7), (FEB, 17, FEB, 20), (MAY, 4, APR, 25), (MAY, 5, MAY, 8), (SEP, 20, SEP, 18), (OCT, 6, SEP, 26), (OCT, 7, OCT, 9)), 2022: ((JAN, 31, JAN, 29), (FEB, 4, JAN, 30), (APR, 4, APR, 2), (MAY, 3, APR, 24), (MAY, 4, MAY, 7), (OCT, 6, OCT, 8), (OCT, 7, OCT, 9)), 2023: ((JAN, 26, JAN, 28), (JAN, 27, JAN, 29), (MAY, 2, APR, 23), (MAY, 3, MAY, 6), (JUN, 23, JUN, 25), (OCT, 5, OCT, 7), (OCT, 6, OCT, 8)), 2024: ((FEB, 15, FEB, 4), (FEB, 16, FEB, 18), (APR, 5, APR, 7), (MAY, 2, APR, 28), (MAY, 3, MAY, 11), (SEP, 16, SEP, 14), (OCT, 4, SEP, 29), (OCT, 7, OCT, 12)), 2025: ((FEB, 3, JAN, 26), (FEB, 4, FEB, 8), (MAY, 5, APR, 27), (OCT, 7, SEP, 28), (OCT, 8, OCT, 11)), 2026: ((JAN, 2, JAN, 4), (FEB, 20, FEB, 14), (FEB, 23, FEB, 28), (MAY, 5, MAY, 9), (OCT, 6, SEP, 20), (OCT, 7, OCT, 10))} class-attribute instance-attribute

special_public_holidays_observed = {2012: (JUN, 22, dragon_boat_festival), 2015: (OCT, 6, mid_autumn_festival), 2020: ((JAN, 30, chinese_new_year), (OCT, 6, mid_autumn_festival))} class-attribute instance-attribute