svendiedrichsen / jollyday

Jollyday - A holiday API
Other
186 stars 116 forks source link

How to programatically identify holidays? #139

Closed brunoais closed 4 years ago

brunoais commented 4 years ago

For my use cases, I want to know, for the country and city it is about, what holiday it is.

For example, I may want to know:

  1. When is Pentecost?
  2. When is the city-specific holiday?

All that appears to be the output of the API is a Holiday object instance that only has a date and a specifier text which may or may not be the holiday I'm looking for.

Help please.

svendiedrichsen commented 4 years ago

Hi @brunoais ,

you can use the propertiesKey as an identifier for the holiday if you have to distinguish the holidays. It is rather a key for the description of the holiday but there is no such thing as an id otherwise.

But if you find the API insufficient for your purposes please feel free to propose a solution by PR.

Cheers Sven

brunoais commented 4 years ago

OK Thank you. It is enough, at least, for now