リファレンス · 同じものを suncalc 1 の約束 (ラジアン、南からの方位) で
LegacySunTimes型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The Sun's times with every one a Date: an invalid Date (NaN) when the Sun does not reach that height that day.
インポート
import type { LegacySunTimes } from "@johnmorrisdotca/wakusei-planets/suncalc/legacy";
定義
type LegacySunTimes = Record<string, Date>;
例
import { getTimes, type LegacySunTimes } from "@johnmorrisdotca/wakusei-planets/suncalc/legacy";
const t: LegacySunTimes = getTimes(new Date(Date.UTC(2026, 5, 21, 12)), 51.5, -0.1);
console.log(Object.keys(t).length);14出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。