Holiday object
The fields of the read-only holiday object and its JSON form.
Annual, monthly, and daily lookups return the same read-only holiday object.
Fields
| Field | Java getter | TypeScript | Python |
|---|---|---|---|
| Official name | getName() → String | name: string | name: str |
| Gregorian date | getDate() → LocalDate | date: string (YYYY-MM-DD) | date: datetime.date |
| Japanese era date | getJapaneseEraDate() → String | japaneseEraDate: string | japanese_era_date: str |
JSON
{
"name": "元日",
"date": "2026-01-01",
"japaneseEraDate": "令和8年1月1日"
}
Python uses the key japanese_era_date. When serializing a Python date, use
holiday.date.isoformat(). Java's Holiday.toString() returns
Holiday[date=..., name=..., japaneseEraDate=...].
Japanese era dates
The era display covers Showa, Heisei, and Reiwa within the bundled dataset and uses 元年 for the first year, as in 令和元年5月1日. It is derived display information. Holiday names and dates come from the official CSV.