Class Moment
java.lang.Object
velo.ladaalpha.fields.astronomy.navigation.Moment
The Class Moment.
- 
Constructor Summary
ConstructorsConstructorDescriptionMoment(int year, int month, int day, int hour, int minute, int second, int ms) Instantiates a new moment. - 
Method Summary
Modifier and TypeMethodDescriptiondoubleDay of month.static MomentgetDateFromJulianDay(double jd) Gets the date from julian day.intgetDay()Gets the day.intgetHour()Gets the hour.doubleGets the julian day.intGets the millisecond.intGets the minute.intgetMonth()Gets the month.intGets the second.intgetYear()Gets the year.booleanChecks if is julian date.voidsetDay(int day) Sets the day.voidsetHour(int hour) Sets the hour.voidsetMillisecond(int millisecond) Sets the millisecond.voidsetMinute(int minute) Sets the minute.voidsetMonth(int month) Sets the month.voidsetSecond(int second) Sets the second.voidsetYear(int year) Sets the year.doubleT_Value()T value. 
- 
Constructor Details
- 
Moment
public Moment(int year, int month, int day, int hour, int minute, int second, int ms) Instantiates a new moment.- Parameters:
 year- the yearmonth- the monthday- the dayhour- the hourminute- the minutesecond- the secondms- the ms
 
 - 
 - 
Method Details
- 
getJulianDay
public double getJulianDay()Gets the julian day.- Returns:
 - the julian day
 
 - 
getDateFromJulianDay
Gets the date from julian day.- Parameters:
 jd- the jd- Returns:
 - the date from julian day
 
 - 
T_Value
public double T_Value()T value.- Returns:
 - the double
 
 - 
IsJulianDate
public boolean IsJulianDate()Checks if is julian date.- Returns:
 - true, if successful
 
 - 
DayOfMonth
public double DayOfMonth()Day of month.- Returns:
 - the double
 
 - 
getYear
public int getYear()Gets the year.- Returns:
 - the year
 
 - 
setYear
public void setYear(int year) Sets the year.- Parameters:
 year- the year to set
 - 
getMonth
public int getMonth()Gets the month.- Returns:
 - the month
 
 - 
setMonth
public void setMonth(int month) Sets the month.- Parameters:
 month- the month to set
 - 
getDay
public int getDay()Gets the day.- Returns:
 - the day
 
 - 
setDay
public void setDay(int day) Sets the day.- Parameters:
 day- the day to set
 - 
getHour
public int getHour()Gets the hour.- Returns:
 - the hour
 
 - 
setHour
public void setHour(int hour) Sets the hour.- Parameters:
 hour- the hour to set
 - 
getMinute
public int getMinute()Gets the minute.- Returns:
 - the minute
 
 - 
setMinute
public void setMinute(int minute) Sets the minute.- Parameters:
 minute- the minute to set
 - 
getSecond
public int getSecond()Gets the second.- Returns:
 - the second
 
 - 
setSecond
public void setSecond(int second) Sets the second.- Parameters:
 second- the second to set
 - 
getMillisecond
public int getMillisecond()Gets the millisecond.- Returns:
 - the millisecond
 
 - 
setMillisecond
public void setMillisecond(int millisecond) Sets the millisecond.- Parameters:
 millisecond- the millisecond to set
 
 -