Class GLONASSDate

    • Constructor Detail

      • GLONASSDate

        @DefaultDataContext
        public GLONASSDate​(int na,
                           int n4,
                           double secInNa)
        Build an instance corresponding to a GLONASS date.

        This method uses the default data context.

        Parameters:
        na - the number of the current day in a four year interval
        n4 - the number of the current four year interval
        secInNa - the number of seconds since na start
        See Also:
        GLONASSDate(int, int, double, TimeScale)
      • GLONASSDate

        public GLONASSDate​(int na,
                           int n4,
                           double secInNa,
                           TimeScale glonass)
        Build an instance corresponding to a GLONASS date.
        Parameters:
        na - the number of the current day in a four year interval
        n4 - the number of the current four year interval
        secInNa - the number of seconds since na start
        glonass - time scale.
        Since:
        10.1
      • GLONASSDate

        public GLONASSDate​(AbsoluteDate date,
                           TimeScale glonass)
        Build an instance from an absolute date.
        Parameters:
        date - absolute date to consider
        glonass - time scale.
        Since:
        10.1
    • Method Detail

      • getSecInDay

        public double getSecInDay()
        Get the number of seconds since Na start.
        Returns:
        number of seconds since Na start
      • getDayNumber

        public int getDayNumber()
        Get the number of the current day in a four year interval.
        Returns:
        the number of the current day in a four year interval
      • getIntervalNumber

        public int getIntervalNumber()
        Get the number of the current four year interval.
        Returns:
        the number of the current four year interval
      • getJD0

        public double getJD0()
        Get the current Julian date JD0.
        Returns:
        the current date JD0
      • getGMST

        public double getGMST()
        Get the Greenwich Mean Sidereal Time.
        Returns:
        the Greenwich Mean Sidereal Time (rad)