From 522609bdf3a7b27f8906207ad4faef4e5005560f Mon Sep 17 00:00:00 2001 From: Laxman Damera Date: Sat, 1 Sep 2018 15:56:23 +0530 Subject: [PATCH] Add static holidays --- holidays/in/index.js | 49 ++++++++++++++++++++++++++++++++++++------ holidays/in/index.json | 7 ------ 2 files changed, 42 insertions(+), 14 deletions(-) delete mode 100644 holidays/in/index.json diff --git a/holidays/in/index.js b/holidays/in/index.js index e060a2c..5728102 100644 --- a/holidays/in/index.js +++ b/holidays/in/index.js @@ -1,12 +1,47 @@ -// INCOMPLETE +var utils = require('../utils'); +var easter = utils.easter; module.exports = { national: [ - '01-26', - '04-14', - '08-15', - '10-02', - '12-25' + '01-26', // Republic day + '08-15', // Independence day + '10-02', // Gandhi Jayanti + '12-25' // Christmas ], - regional: [] + regional: [ + // Secular holidays + '01-01', // New Year + '01-14', // Pongal / Uttarayan (Gujarat) + '01-23', // Bose's Jayanti + '02-19', // Shivaji's Jayanti (Maharashtra) + '03-15', // Kanshi Ram's Jayanti (UP) + '03-22', // Bihar day + '03-30', // Rajasthan Day + '04-01', // Odisha day + '04-14', // Ambedkar's Jayanti + '04-15', // New Year Assamese & Odia + '05-01', // Labour Day / Maharashtra day / Gujarat day + '05-09', // Rabindra Jayanti (WB) + '05-16', // Annexation Day (Sikkim) + '06-02', // Telangana Formation Day + '06-15', // Maharana Pratap Jayanti (Rajasthan) + '10-26', // Accession Day (J&K) + '10-31', // Sardar Patel Jayanti (Gujarat) + '11-01', // Foundation Day for AP, Haryana, MP, Kerala + '12-07', // Armed Forces Flag Day + + // Christian holidays + utils.before('Thu', easter), // Maundy Thursday + utils.before('Fri', easter), // Good Friday + easter, + utils.pentecost, + '07-03', // Feast of St. Thomas (Kerala) + '09-05', // Fest of St. Theresa of Calcutta + '08-05', // Feast of the Blessed Virgin + '09-01', // All Saints Day (Karnataka) + '09-02', // All Souls Day (Mizoram) + '12-03', // Feast of St. Francis Xavier (Goa) + '12-26', // Boxing Day (Telangana) + '12-30' // Feast of Holy Family (Meghalaya) + ] }; diff --git a/holidays/in/index.json b/holidays/in/index.json deleted file mode 100644 index c2547ee..0000000 --- a/holidays/in/index.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - "01-26", - "04-14", - "08-15", - "10-02", - "12-25" -]