Reference · Passes: when a satellite crosses the sky over a place
PassWindowtype
The span of time to look in: a pass is listed when its highest point is in it.
Import it
import type { PassWindow } from "@johnmorrisdotca/chikyu-earth/passes";
Definition
interface PassWindow {
from: number;
to: number;
}
Members
| Name | Type | Description |
|---|---|---|
from | number | The start, milliseconds since the Unix epoch. |
to | number | The end, milliseconds since the Unix epoch. |
Examples
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);604800000What it prints (run when this page was built)