PassWindow型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The span of time to look in: a pass is listed when its highest point is in it.
インポート
import type { PassWindow } from "@johnmorrisdotca/chikyu-earth/passes";
定義
interface PassWindow {
from: number;
to: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
from | number | The start, milliseconds since the Unix epoch. |
to | number | The end, milliseconds since the Unix epoch. |
例
import type { PassWindow } from "@johnmorrisdotca/chikyu-earth/passes";
const week: PassWindow = { from: Date.UTC(2026, 10, 9), to: Date.UTC(2026, 10, 16) };
console.log(week.to - week.from);604800000出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。