Nager.Date icon indicating copy to clipboard operation
Nager.Date copied to clipboard

Add country India

Open prasadtelkikar opened this issue 6 years ago • 8 comments

Need to implement provider for Indian holidays India is know for Unity in diversity. you can see diversity in holidays as well. Wikipedia suggests more than 20 days as holidays based on religions, states etc. Wikipedia: Public holidays in India.

Following are the national holidays which we need to add in IndianProvider.cs. Reference: Indian post office holiday list.

I categorized list into two sections.

  1. Holidays with fixed date.
  2. Holidays which varies in date.

Holidays with fixed date. All dates are in dd/MM/yyyy format

  • Republic day of India. -> 26/01/2018
  • Independence day of India -> 15/08/2018
  • Mahatma Gandhi birthday -> 02/10/2018
  • Christmas -> 25/12/2018

Holidays which varies in date. All dates are in dd/MM/yyyy format

All holidays which are categorized into second section may vary depends upon user. Holidays in second categories needs some sort of algorithm to get exact date.

prasadtelkikar avatar Apr 08 '18 10:04 prasadtelkikar

I stared working on Indian provider, added all fixed holidays. Need to work on second section holidays.

prasadtelkikar avatar Apr 08 '18 10:04 prasadtelkikar

Okay thanks. I think this page is also a good reference but it's no list available, of the full year. https://www.india.gov.in/calendar?date=2018

tinohager avatar Apr 08 '18 15:04 tinohager

@tinohager are you working on this issue??

iamrishav avatar Sep 19 '19 04:09 iamrishav

@iamrishav I don't have time for this at the moment.

tinohager avatar Sep 19 '19 07:09 tinohager

@tinohager , @iamrishav I can work on this enhancement, but it seems pretty difficult. because dates which comes under the second category are more than first category. (Refer my first message for categories). We do not have any logic or algorithm to implement dates from second category.

If any one of you help me to design/develop logic for holiday dates which varies every year then It would be really helpful

prasadtelkikar avatar Oct 02 '19 17:10 prasadtelkikar

@MaximeGenevier Are you still creating a pull request for the new India provider?

tinohager avatar Sep 19 '22 19:09 tinohager

@MaximeGenevier Are you still creating a pull request for the new India provider?

@tinohager No sorry, I didn't had time to work on it anymore

MaximeGenevier avatar Sep 20 '22 13:09 MaximeGenevier

@MaximeGenevier Thanks for the fast feedback

tinohager avatar Sep 20 '22 19:09 tinohager

@iamrishav @prasadtelkikar Would any of you like to complete the work of MaximeGenevier?

tinohager avatar Jan 11 '23 19:01 tinohager