Class GPSDate

    • Constructor Detail

      • GPSDate

        public GPSDate​(int weekNumber,
                       double milliInWeek)
        Build an instance corresponding to a GPS date.

        GPS dates are provided as a week number starting at GPS epoch and as a number of milliseconds since week start.

        Parameters:
        weekNumber - week number since GPS epoch
        milliInWeek - number of milliseconds since week start
      • GPSDate

        public GPSDate​(AbsoluteDate date)
        Build an instance from an absolute date.
        Parameters:
        date - absolute date to consider
    • Method Detail

      • getWeekNumber

        public int getWeekNumber()
        Get the week number since GPS epoch.
        Returns:
        week number since GPS epoch
      • getMilliInWeek

        public double getMilliInWeek()
        Get the number of milliseconds since week start.
        Returns:
        number of milliseconds since week start