oldCalendarDate関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The old-calendar date of a Gregorian date, from the new moons and the sun's longitude.
インポート
import { oldCalendarDate } from "@johnmorrisdotca/koyomi-calendars/japanese";
ほかのエクスポート元: @johnmorrisdotca/koyomi-calendars
定義
function oldCalendarDate(year: number, month: number, dayOfMonth: number): OldDate | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
year | number | Four-digit year. |
month | number | Month 1 to 12. |
dayOfMonth | number | Day of the month. |
戻り値
OldDate | null
The old month, day and whether the month is a leap month, or null when the date is outside 1900 to 2100 or a new moon or principal term falls too near midnight in Japan to be sure.
例
import { oldCalendarDate } from "@johnmorrisdotca/koyomi-calendars/japanese";
console.log(oldCalendarDate(2026, 11, 3));{ month: 9, day: 24, leap: false }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。