summaryrefslogtreecommitdiffstats
path: root/org/madore/ephem/Ephem.java
blob: 4afbc098f5d7df8fff51c594a58c188c3bd84df6 (plain)
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!

}