1 2 3 4 5 6 7 8 9 10 11 12
package org.madore.ephem; public final class Ephem { public static double fromJd(double jd) { // Convert Julian date to Julian centuries from J2000 return (jd-2451545)/36525; } public static final double auSeconds = 499.0047838362; // TDB seconds! }