MCPcopy
hub / github.com/mourner/suncalc / fromJulian

Function fromJulian

index.js:13–15  ·  view source on GitHub ↗
(j)

Source from the content-addressed store, hash-verified

11const earthRadius = 6378.14; // equatorial radius in km, for the Moon's topocentric parallax
12
13function fromJulian(j) {
14 return new Date((j + 0.5 - J1970) * dayMs);
15}
16function toDays(date) {
17 return date.valueOf() / dayMs - 0.5 + J1970 - J2000;
18}

Callers 1

getTimesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…