Skip to the content

Hikidashi引き出し

Era dates (和暦) and kanji numerals both ways, the dictionary forms of a conjugated word, a reading shared out over its kanji, words pulled from pasted text, and how hard a sentence is to read.

Hikidashi (引き出し) is a drawer: each tool is pulled out when it is wanted. About the name

Contents

Reference · Era years

JAPANESE_ERASconstant

The five modern eras, oldest first: 明治, 大正, 昭和, 平成 and 令和.

明治 is dated from 23 October 1868, when the name was proclaimed; its years are counted as if it began with 1868, so 明治1 is 1868 and 明治45 is 1912. Each later era begins the day the emperor before it died, which is also the day the year number starts again from 元年.

Import it

import { JAPANESE_ERAS } from "@johnmorrisdotca/hikidashi/wareki";

Also exported from: @johnmorrisdotca/hikidashi

Definition

const JAPANESE_ERAS: readonly JapaneseEra[] = [
    { kanji: "明治", romaji: "Meiji", reading: "めいじ", startYear: 1868, lastYear: 45, startDate: "1868-10-23", endDate: "1912-07-29", spellings: ["meiji"] },
    { kanji: "大正", romaji: "Taisho", reading: "たいしょう", startYear: 1912, lastYear: 15, startDate: "1912-07-30", endDate: "1926-12-24", spellings: ["taisho", "taishou", "taishō"] },
    { kanji: "昭和", romaji: "Showa", reading: "しょうわ", startYear: 1926, lastYear: 64, startDate: "1926-12-25", endDate: "1989-01-07", spellings: ["showa", "shouwa", "shōwa"] },
    { kanji: "平成", romaji: "Heisei", reading: "へいせい", startYear: 1989, lastYear: 31, startDate: "1989-01-08", endDate: "2019-04-30", spellings: ["heisei"] },
    { kanji: "令和", romaji: "Reiwa", reading: "れいわ", startYear: 2019, lastYear: null, startDate: "2019-05-01", endDate: null, spellings: ["reiwa"] },
]

Examples

import { JAPANESE_ERAS } from "@johnmorrisdotca/hikidashi/wareki";

for (const era of JAPANESE_ERAS) console.log(`${era.kanji} ${era.romaji}: ${era.startDate} to ${era.endDate ?? "still running"}`);
明治 Meiji: 1868-10-23 to 1912-07-29
大正 Taisho: 1912-07-30 to 1926-12-24
昭和 Showa: 1926-12-25 to 1989-01-07
平成 Heisei: 1989-01-08 to 2019-04-30
令和 Reiwa: 2019-05-01 to still running

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hikidashi 1.1.0.