|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjat.timeRef.CalDate
public class CalDate
The CalDate Class provides methods of converting between the CalDate and MJD and GPSTimeFormat formats. Reference: Satellite Orbits by Montenbruck and Gill. Note: CalDate is just a time format. The actual time depicted could be GPS time, UTC, TAI, etc.
CalDate,
Serialized Form| Field Summary | |
|---|---|
static int |
TAI_GPS
Deprecated. |
static double |
TT_TAI
Deprecated. |
| Constructor Summary | |
|---|---|
CalDate(CalDate cal)
Deprecated. Construct a clone of a CalDate object. |
|
CalDate(double mjd)
Deprecated. Create a CalDate object using MJD. |
|
CalDate(GPSTimeFormat gps)
Deprecated. Create a CalDate object using GPS Time. |
|
CalDate(int Yr,
int Mon,
int D,
int Hr,
int Mn,
double S)
Deprecated. Construct a time object using a calendar date. |
|
| Method Summary | |
|---|---|
int |
day()
Deprecated. Return the day of the month. |
int |
day2doy(int year,
int month,
int mday)
Deprecated. Convert Day of Month to Day of Year. |
int |
doy()
Deprecated. Return the day of year. |
int |
doy2day(int year,
int doy)
Deprecated. Compute the day of month from day of year. |
int |
doy2month(int year,
int doy)
Deprecated. Compute the month from day of year. |
GPSTimeFormat |
gpsTime()
Deprecated. Return the time in GPSTimeFormat format. |
int |
hour()
Deprecated. Return the hour. |
void |
increment(double sec)
Deprecated. Increments time forward or backwards. |
int |
min()
Deprecated. Return the minutes. |
double |
mjd()
Deprecated. Returns the modified Julian date. |
int |
month()
Deprecated. Returns the month. |
void |
print(java.lang.String title)
Deprecated. Print out the date |
double |
sec_of_day()
Deprecated. Return the seconds of the day. |
double |
sec()
Deprecated. Return the second. |
static int |
tai_utc(double mjd)
Deprecated. Return the difference between TAI and UTC (known as leap seconds). |
java.lang.String |
toString()
Deprecated. Send it to string |
GPSTimeFormat |
UTC2GPS()
Deprecated. Convert UTC time to GPS time. |
static double |
UTC2TT(double mjd_utc)
Deprecated. Convert UTC time to TT. |
int |
year()
Deprecated. Returns the year. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final double TT_TAI
public static final int TAI_GPS
| Constructor Detail |
|---|
public CalDate(int Yr,
int Mon,
int D,
int Hr,
int Mn,
double S)
Yr - Year.Mon - Month.D - Day.Hr - Hours.Mn - Minutes.S - Seconds.public CalDate(CalDate cal)
cal - CalDate object to be cloned.public CalDate(double mjd)
mjd - Modified Julian Date.public CalDate(GPSTimeFormat gps)
gps - GPSTimeFormat object.| Method Detail |
|---|
public double mjd()
public GPSTimeFormat gpsTime()
public int day2doy(int year,
int month,
int mday)
year - Year.month - Month.mday - Day of month.
public int doy2month(int year,
int doy)
year - Year.doy - Day of year.
public int doy2day(int year,
int doy)
year - Year.doy - Day of year.
public void increment(double sec)
sec - Increment to move time in seconds. Positive for forward, negative for backwards.public int year()
public int month()
public int day()
public int hour()
public int min()
public double sec()
public int doy()
public double sec_of_day()
public static int tai_utc(double mjd)
mjd - Modified Julian Date
public GPSTimeFormat UTC2GPS()
public static double UTC2TT(double mjd_utc)
mjd_utc - MJD of Current UTC time
public java.lang.String toString()
toString in class java.lang.Objectpublic void print(java.lang.String title)
title - String containing a title
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||