hldays adds business-day calculations that respect local and municipal holidays
The author built the business-day endpoints of the hldays API to answer whether a date is a working day in a specific place. Whether a day counts as a working day depends on location, down to the municipality: 24 June is a normal Wednesday in 2026 nationally, but it is a closed day in Porto while remaining open in Lisbon. The API has two endpoints, one that checks whether a date is a business day and one that adds a number of business days to a start date. Both accept a jurisdiction and apply the place's own holidays along with those inherited from its region and country. The author illustrates this with England at Christmas 2026, where a substitute holiday moves Boxing Day to Monday 28 December.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in