World Business Calendar
v0.1.0Public holidays and working-day math for 200+ countries and regions, local weekends.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
world_list_holidays
List public holidays of a country (and optionally a state/region) for a year, with English and local names and substitute (observed) days. 200+ countries. Use for scheduling across countries, shipping cut-offs, payroll or market-closed days. Set types to include bank/optional/observance days.
| Parameter | Type | Description |
|---|---|---|
country * | string | ISO 3166-1 alpha-2 country code, e.g. US, GB, DE, JP, IN, AE |
year * | integer | |
region | string | Optional state/region code, e.g. CA (California) for US, BY (Bavaria) for DE. Regional holidays differ. |
types | array |
world_is_business_day
Tell whether a date is a working day in a country (not a weekend there, not a public holiday), and give the next and previous working days. Knows local weekends (Friday–Saturday in Saudi Arabia, Israel, Egypt…). Default date is today in that country.
| Parameter | Type | Description |
|---|---|---|
country * | string | ISO 3166-1 alpha-2 country code, e.g. US, GB, DE, JP, IN, AE |
date | string | yyyy-MM-dd |
extraHolidays | array | Company days off to treat as holidays |
includeBank | boolean | Also treat bank holidays as days off (default: public holidays only) |
region | string | Optional state/region code, e.g. CA (California) for US, BY (Bavaria) for DE. Regional holidays differ. |
world_add_business_days
Add or subtract N working days in a country (skipping its weekends and public holidays), or count working days between two dates. Use for delivery ETAs, contract or payment deadlines, SLA due dates. Needs country, from (default today there) and either days or to.
| Parameter | Type | Description |
|---|---|---|
country * | string | ISO 3166-1 alpha-2 country code, e.g. US, GB, DE, JP, IN, AE |
days | integer | |
extraHolidays | array | Company days off to treat as holidays |
from | string | yyyy-MM-dd |
includeBank | boolean | Also treat bank holidays as days off (default: public holidays only) |
region | string | Optional state/region code, e.g. CA (California) for US, BY (Bavaria) for DE. Regional holidays differ. |
to | yyyy-MM-dd |
world_common_business_days
Find dates that are working days in ALL of several countries (e.g. US, DE and JP teams), between two dates — for meetings, settlements or launches across borders. Max 10 countries, 92 days.
| Parameter | Type | Description |
|---|---|---|
countries * | array | |
from * | string | yyyy-MM-dd |
to * |
world_list_countries
List supported country codes (200+) or, with country, its state/region codes for regional holidays.
| Parameter | Type | Description |
|---|---|---|
country | string | ISO 3166-1 alpha-2 country code, e.g. US, GB, DE, JP, IN, AE |
search | string |