gisce / electrical_calendar

Electrical sector holidays and workdays using workalendar. Spain and Portugal data
GNU General Public License v3.0
3 stars 0 forks source link

Upgrade REE calendar with correct holidays #5

Closed XaviTorello closed 8 years ago

XaviTorello commented 8 years ago

As agreed on #4:

REE Holidays

  1. 01/01 - "Año nuevo"
  2. 08/15 - "Asunción de la Virgen"
  3. 10/12 - "Fiesta Nacional de España"
  4. 11/01 - "Todos los Santos"
  5. 12/06 - "Día de la Constitución Española"
  6. 12/08 - "La Inmaculada Concepción"

thxs @tinogis

XaviTorello commented 8 years ago

Done! See 4768120e7e85b4e81ff15b0ed8d21a9b35d748e3

In [30]: a.holidays(2015) Out[30]: [(datetime.date(2015, 1, 1), 'New year'), (datetime.date(2015, 8, 15), 'Assumption of Mary to Heaven'), (datetime.date(2015, 10, 12), 'National Day'), (datetime.date(2015, 11, 1), 'All Saints Day'), (datetime.date(2015, 12, 6), 'Constitution Day'), (datetime.date(2015, 12, 8), 'Immaculate Conception')]

In [31]: a.holidays(2016) Out[31]: [(datetime.date(2016, 1, 1), 'New year'), (datetime.date(2016, 8, 15), 'Assumption of Mary to Heaven'), (datetime.date(2016, 10, 12), 'National Day'), (datetime.date(2016, 11, 1), 'All Saints Day'), (datetime.date(2016, 12, 6), 'Constitution Day'), (datetime.date(2016, 12, 8), 'Immaculate Conception')]

In [32]: a.holidays(2017) Out[32]: [(datetime.date(2017, 1, 1), 'New year'), (datetime.date(2017, 8, 15), 'Assumption of Mary to Heaven'), (datetime.date(2017, 10, 12), 'National Day'), (datetime.date(2017, 11, 1), 'All Saints Day'), (datetime.date(2017, 12, 6), 'Constitution Day'), (datetime.date(2017, 12, 8), 'Immaculate Conception')]