jat.timeRef
Class CalDate

java.lang.Object
  extended by jat.timeRef.CalDate
All Implemented Interfaces:
java.io.Serializable

Deprecated.

public class CalDate
extends java.lang.Object
implements java.io.Serializable

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.

Version:
1.0
Author:
Dave Gaylor
See Also:
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

TT_TAI

public static final double TT_TAI
Deprecated. 
See Also:
Constant Field Values

TAI_GPS

public static final int TAI_GPS
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

CalDate

public CalDate(int Yr,
               int Mon,
               int D,
               int Hr,
               int Mn,
               double S)
Deprecated. 
Construct a time object using a calendar date.

Parameters:
Yr - Year.
Mon - Month.
D - Day.
Hr - Hours.
Mn - Minutes.
S - Seconds.

CalDate

public CalDate(CalDate cal)
Deprecated. 
Construct a clone of a CalDate object.

Parameters:
cal - CalDate object to be cloned.

CalDate

public CalDate(double mjd)
Deprecated. 
Create a CalDate object using MJD. From Montenbruck C++ code.

Parameters:
mjd - Modified Julian Date.

CalDate

public CalDate(GPSTimeFormat gps)
Deprecated. 
Create a CalDate object using GPS Time. Translated code from the NOAA GPS Toolbox (www.ngs.noaa.gov/gps-toolbox/index.html).

Parameters:
gps - GPSTimeFormat object.
Method Detail

mjd

public double mjd()
Deprecated. 
Returns the modified Julian date. From Montenbruck C++ code.

Returns:
modified Julian date.

gpsTime

public GPSTimeFormat gpsTime()
Deprecated. 
Return the time in GPSTimeFormat format. From GPS Toolkit code.

Returns:
Time in GPSTimeFormat format.

day2doy

public int day2doy(int year,
                   int month,
                   int mday)
Deprecated. 
Convert Day of Month to Day of Year.

Parameters:
year - Year.
month - Month.
mday - Day of month.
Returns:
Day of year.

doy2month

public int doy2month(int year,
                     int doy)
Deprecated. 
Compute the month from day of year. From GPS Toolkit code.

Parameters:
year - Year.
doy - Day of year.
Returns:
Month.

doy2day

public int doy2day(int year,
                   int doy)
Deprecated. 
Compute the day of month from day of year. From GPS Toolkit code.

Parameters:
year - Year.
doy - Day of year.
Returns:
Day of month.

increment

public void increment(double sec)
Deprecated. 
Increments time forward or backwards.

Parameters:
sec - Increment to move time in seconds. Positive for forward, negative for backwards.

year

public int year()
Deprecated. 
Returns the year.

Returns:
Year.

month

public int month()
Deprecated. 
Returns the month.

Returns:
Month.

day

public int day()
Deprecated. 
Return the day of the month.

Returns:
Day of month.

hour

public int hour()
Deprecated. 
Return the hour.

Returns:
Hour.

min

public int min()
Deprecated. 
Return the minutes.

Returns:
Minute.

sec

public double sec()
Deprecated. 
Return the second.

Returns:
Second.

doy

public int doy()
Deprecated. 
Return the day of year.

Returns:
Day of year.

sec_of_day

public double sec_of_day()
Deprecated. 
Return the seconds of the day.

Returns:
seconds of the day.

tai_utc

public static int tai_utc(double mjd)
Deprecated. 
Return the difference between TAI and UTC (known as leap seconds). Values from the USNO website: ftp://maia.usno.navy.mil/ser7/leapsec.dat As of July 19, 2002, no leap second in Dec 2002 so next opportunity for adding a leap second is July 2003. Check IERS Bulletin C.

Parameters:
mjd - Modified Julian Date
Returns:
number of leaps seconds.

UTC2GPS

public GPSTimeFormat UTC2GPS()
Deprecated. 
Convert UTC time to GPS time.

Returns:
CalDate object with current UTC time.

UTC2TT

public static double UTC2TT(double mjd_utc)
Deprecated. 
Convert UTC time to TT.

Parameters:
mjd_utc - MJD of Current UTC time
Returns:
MJD of current TT.

toString

public java.lang.String toString()
Deprecated. 
Send it to string

Overrides:
toString in class java.lang.Object
Returns:
String containing the calendar date

print

public void print(java.lang.String title)
Deprecated. 
Print out the date

Parameters:
title - String containing a title