Find holidays in different countries.
Let's get the 2016 Japanese holidays.
workalendar.py
# -*- coding: utf-8 -*-
from workalendar.asia import Japan
cal = Japan()
for i in xrange(len(cal.holidays(2016))):
print cal.holidays(2016)[i]
(datetime.date(2016, 1, 1), 'New year') (datetime.date(2016, 1, 11), 'Coming of Age Day') (datetime.date(2016, 2, 11), 'Foundation Day') (datetime.date(2016, 3, 20), 'Vernal Equinox Day') (datetime.date(2016, 4, 29), 'Showa Day') (datetime.date(2016, 5, 3), 'Constitution Memorial Day') (datetime.date(2016, 5, 4), 'Greenery Day') (datetime.date(2016, 5, 5), "Children's Day") (datetime.date(2016, 7, 18), 'Marine Day') (datetime.date(2016, 9, 19), 'Respect-for-the-Aged Day') (datetime.date(2016, 9, 22), 'Autumnal Equinox Day') (datetime.date(2016, 10, 10), 'Health and Sports Day') (datetime.date(2016, 11, 3), 'Culture Day') (datetime.date(2016, 11, 23), 'Labour Thanksgiving Day') (datetime.date(2016, 12, 23), "The Emperor's Birthday")
March 21st was a transfer holiday this year, but it is not included in the results (> _ <)
I want you to support the acquisition of holidays in all countries.
Recommended Posts