flight-planner
Version:
Plan and route VFR flights
19 lines (18 loc) • 879 B
TypeScript
import { Waypoint } from './waypoint.types.js';
/**
* Determines if a given time is during daylight at the specified waypoint.
*
* @param waypoint - The waypoint to check for daylight
* @param time - The time to check (defaults to current time)
* @returns true if the specified time is during daylight (between sunrise and sunset)
*/
export declare function isDaylight(waypoint: Waypoint, time?: Date): boolean;
/**
* Determines if a given time is during night at the specified waypoint.
* Night is defined as the period between the end of evening civil twilight and the beginning of morning civil twilight.
*
* @param waypoint - The waypoint to check for night conditions
* @param time - The time to check (defaults to current time)
* @returns true if the specified time is during night
*/
export declare function isNight(waypoint: Waypoint, time?: Date): boolean;