@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.
35 lines (34 loc) • 1.45 kB
TypeScript
/*****************************************************************************************************************/
/*****************************************************************************************************************/
/**
*
* getJulianDate()
*
*
* @param date - The date for which to calculate the Julian Date (JD).
* @returns Julian Date as number - the Julian Date (JD) of the given date normalised to UTC.
*
*/
export declare const getJulianDate: (datetime: Date) => number;
/*****************************************************************************************************************/
/**
*
* getModifiedJulianDate()
*
*
* @param date - The date for which to calculate the Modified Julian Date (MJD).
* @returns Modified Julian Date as number - the Modified Julian Date (MJD) of the given date normalised to UTC.
*
*/
export declare const getModifiedJulianDate: (datetime: Date) => number;
/*****************************************************************************************************************/
/**
*
* getNumberOfCenturiesSinceJ2000()
*
* @param datetime - The date for which to calculate the number of centuries since J2000.0.
* @returns number - the number of centuries since J2000.0.
*
*/
export declare const getNumberOfCenturiesSinceJ2000: (datetime: Date) => number;
/*****************************************************************************************************************/