|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.pdx.starview.calc.SVTime
This is for doing general purpose time calculations of Julian Dates and Sidreal Times
Constructor Summary | |
SVTime(java.util.Date d)
|
|
SVTime(double JD)
Constructor |
|
SVTime(int year,
int month,
int day,
int hour,
int minute,
int second)
Constructor |
Method Summary | |
int |
getDay()
|
int |
getHour()
|
double |
getJ2000Centuries()
|
double |
getJD()
|
static double |
getJD(int year,
int month,
int day,
int hour,
int min,
double sec,
int offsetFromUT,
int daylightSavingsTimeValue)
Deprecated. |
double |
getJulianCenturies()
|
static SVAngle |
getLocalSidrealTime(double julianDate,
SVAngle longitude)
TODO Make this compensate for nutation in longitude, the web page tells how to do this Note: Setting longitude to 0 (zero) will return greenwhich sidreal time http://aa.usno.navy.mil/faq/docs/GAST.html This is accurate to +/- 1.5 arcseconds |
int |
getMinute()
|
double |
getMJD()
|
int |
getMonth()
|
int |
getSecond()
|
int |
getYear()
|
void |
setDate(int year,
int month,
int day,
int hour,
int minute,
int second)
Sets the date for this object for (as it would be for greenwhich time, not accounting for timezone or daylight savings time) |
void |
setJD(double JD)
Sets the time based on the julian date specified in JD. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SVTime(double JD)
JD
- the julian date that this time represents.public SVTime(java.util.Date d)
public SVTime(int year, int month, int day, int hour, int minute, int second)
year
- month
- day
- hour
- minute
- second
- Method Detail |
public void setJD(double JD)
JD
- The date to set the object to.public void setDate(int year, int month, int day, int hour, int minute, int second)
year
- Year to set it to.month
- Month to set it today
- Day to set it tohour
- Hour to set it tominute
- Minute to set it tosecond
- Second to set it topublic double getJulianCenturies()
public double getJ2000Centuries()
public double getMJD()
public double getJD()
public java.lang.String toString()
public int getYear()
public int getMonth()
public int getDay()
public int getHour()
public int getMinute()
public int getSecond()
public static SVAngle getLocalSidrealTime(double julianDate, SVAngle longitude)
julianDate
- The julian date for the Local Side Real time that is to be calculatedlongitude
- The number of degrees from the prime maridian that the LST is to be calculated for
public static double getJD(int year, int month, int day, int hour, int min, double sec, int offsetFromUT, int daylightSavingsTimeValue)
year
- Year of julian datemonth
- Month of julain dateday
- Day of julian datehour
- Hour of julian datemin
- Minute of julian datesec
- Second of Julian dateoffsetFromUT
- The time offset from UT i.e. Pacific = +8daylightSavingsTimeValue
- If daylight savings time is in affect, 1, else 0
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |