Class GLONASSScale

    • Method Detail

      • insideLeap

        public boolean insideLeap​(AbsoluteDate date)
        Check if date is within a leap second introduction in this time scale.

        This method will return false for all time scales that do not implement leap seconds, even if the date corresponds to a leap second in UTC scale.

        Specified by:
        insideLeap in interface TimeScale
        Parameters:
        date - date to check
        Returns:
        true if time is within a leap second introduction
      • insideLeap

        public <T extends CalculusFieldElement<T>> boolean insideLeap​(FieldAbsoluteDate<T> date)
        Check if date is within a leap second introduction in this time scale.

        This method will return false for all time scales that do not implement leap seconds, even if the date corresponds to a leap second in UTC scale.

        Specified by:
        insideLeap in interface TimeScale
        Type Parameters:
        T - type of the filed elements
        Parameters:
        date - date to check
        Returns:
        true if time is within a leap second introduction
      • minuteDuration

        public int minuteDuration​(AbsoluteDate date)
        Check length of the current minute in this time scale.

        This method will return 60 for all time scales that do not implement leap seconds, even if the date corresponds to a leap second in UTC scale, and 61 for time scales that do implement leap second when the current date is within the last minute before the leap, or during the leap itself.

        Specified by:
        minuteDuration in interface TimeScale
        Parameters:
        date - date to check
        Returns:
        60 or 61 depending on leap seconds introduction
      • minuteDuration

        public <T extends CalculusFieldElement<T>> int minuteDuration​(FieldAbsoluteDate<T> date)
        Check length of the current minute in this time scale.

        This method will return 60 for all time scales that do not implement leap seconds, even if the date corresponds to a leap second in UTC scale, and 61 for time scales that do implement leap second when the current date is within the last minute before the leap, or during the leap itself.

        Specified by:
        minuteDuration in interface TimeScale
        Type Parameters:
        T - type of the filed elements
        Parameters:
        date - date to check
        Returns:
        60 or 61 depending on leap seconds introduction
      • getLeap

        public double getLeap​(AbsoluteDate date)
        Get the value of the previous leap.

        This method will return 0.0 for all time scales that do not implement leap seconds.

        Specified by:
        getLeap in interface TimeScale
        Parameters:
        date - date to check
        Returns:
        value of the previous leap
      • getLeap

        public <T extends CalculusFieldElement<T>> T getLeap​(FieldAbsoluteDate<T> date)
        Get the value of the previous leap.

        This method will return 0.0 for all time scales that do not implement leap seconds.

        Specified by:
        getLeap in interface TimeScale
        Type Parameters:
        T - type of the filed elements
        Parameters:
        date - date to check
        Returns:
        value of the previous leap
      • getName

        public String getName()
        Get the name time scale.
        Specified by:
        getName in interface TimeScale
        Returns:
        name of the time scale