OldDate型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A date of the old Japanese calendar (旧暦, kyūreki): a month 1 to 12, a day, and whether the month is a leap month.
インポート
import type { OldDate } from "@johnmorrisdotca/koyomi-calendars/japanese";
ほかのエクスポート元: @johnmorrisdotca/koyomi-calendars
定義
interface OldDate {
readonly month: number;
readonly day: number;
readonly leap: boolean;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
month | number | 1 to 12. |
day | number | |
leap | boolean | The month is a leap month (閏月) of the number before it. |
例
import { oldCalendarDate, type OldDate } from "@johnmorrisdotca/koyomi-calendars/japanese";
const old: OldDate | null = oldCalendarDate(2026, 11, 3);
console.log(old);{ month: 9, day: 24, leap: false }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。