MCPcopy Create free account
hub / github.com/microsoft/SandDance / toDays

Function toDays

docs/app/js/sanddance-app.js:95808–95810  ·  view source on GitHub ↗
(timestamp)

Source from the content-addressed store, hash-verified

95806 return timestamp / DAY_IN_MS - 0.5 + JD1970;
95807}
95808function toDays(timestamp) {
95809 return toJulianDay(timestamp) - JD2000;
95810}
95811function getRightAscension(eclipticLongitude, b) {
95812 var lambda = eclipticLongitude;
95813 return Math.atan2(Math.sin(lambda) * Math.cos(e) - Math.tan(b) * Math.sin(e), Math.cos(lambda));

Callers 1

getSolarPositionFunction · 0.70

Calls 1

toJulianDayFunction · 0.70

Tested by

no test coverage detected