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.

4 lines (3 loc) 684 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./utilities-HBcnbrPA.cjs");// @license Copyright © 2021-2023 observerly const M=s=>{const{deg:e,min:t,sec:a}=o.convertDegreeToDMS(s),r=e>=0?"+":"-",n=e>-10&&e<10?"0":"";return`${r}${n}${Math.abs(e)}° ${t<10?`0${Math.abs(t)}`:Math.abs(t)}' ${a<10?`0${Math.abs(a)}`:Math.abs(a)}"`},i=s=>{const{hrs:e,min:t,sec:a}=o.convertDegreeToHMS(s);return`${Math.abs(e)<10?`0${Math.abs(e)}`:e}ʰ ${t<10?`0${Math.abs(t)}`:Math.abs(t)}${a<10?`0${Math.abs(a)}`:Math.abs(a)}ˢ`};exports.formatDegreeToDMSHumanized=M;exports.formatDegreeToHMSHumanized=i; //# sourceMappingURL=humanize.cjs.map