UNPKG

@observerly/astrometry

Version:

observerly's lightweight, zero-dependency, type safe astrometry library written in Typescript for calculating the position of celestial objects in the sky.

45 lines (44 loc) 1.58 kB
/*****************************************************************************************************************/ /*****************************************************************************************************************/ export declare const CURRENT_EXPIRY_UNIX_TIMESTAMP: number; /*****************************************************************************************************************/ interface IERS_LEAP_SECONDS_NTP { /** * * * The ntp timestamp is the number of seconds since 1st Jan 1900 as defined by the * International Earth Rotation and Reference Systems Service (IERS) when the * leap second was added to the UTC time scale. * */ ntp: number; /** * * * The corresponding Unix timestamp is the number of seconds since 1st Jan 1970 * when the leap second was added to the UTC time scale. * * */ unix: number; /** * * * DTAI is the difference between TAI and UTC, and is the number of seconds that * the UTC time scale is ahead of TAI. * */ dtai: number; /** * * * The date and time when the leap second was added to the UTC time scale as a * JavaScript Date object. * */ when: Date; } /*****************************************************************************************************************/ export declare const LEAP_SECONDS: IERS_LEAP_SECONDS_NTP[]; export {}; /*****************************************************************************************************************/