calendarMoon関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The phase of the moon at noon UTC on a date, in eighths of a lunation: 0 new, 2 first quarter, 4 full, 6 last quarter.
A mean lunation from a known new moon, so it can be a day out near the turn of a phase.
インポート
import { calendarMoon } from "@johnmorrisdotca/koyomi-calendars";
定義
function calendarMoon(year: number, month: number, day: number): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
year | number | Four-digit year. |
month | number | Month 1 to 12. |
day | number | Day of the month. |
戻り値
number
A whole number 0 to 7.
例
import { calendarMoon } from "@johnmorrisdotca/koyomi-calendars";
console.log(calendarMoon(2026, 11, 3));6出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。