java.lang.Object
velo.ladaalpha.fields.astronomy.navigation.Moment

public class Moment extends Object
The Class Moment.
  • 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 year
      month - the month
      day - the day
      hour - the hour
      minute - the minute
      second - the second
      ms - the ms
  • Method Details

    • getJulianDay

      public double getJulianDay()
      Gets the julian day.
      Returns:
      the julian day
    • getDateFromJulianDay

      public static Moment getDateFromJulianDay(double jd)
      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