Class GpxTimeOffset


  • public final class GpxTimeOffset
    extends java.lang.Object
    Time offset of GPX correlation.
    Since:
    14205 (extracted from CorrelateGpxWithImages)
    • Constructor Detail

    • Method Detail

      • milliseconds

        public static GpxTimeOffset milliseconds​(long milliseconds)
        Constructs a new GpxTimeOffset from milliseconds.
        Parameters:
        milliseconds - time offset in milliseconds.
        Returns:
        new GpxTimeOffset
      • seconds

        public static GpxTimeOffset seconds​(long seconds)
        Constructs a new GpxTimeOffset from seconds.
        Parameters:
        seconds - time offset in seconds.
        Returns:
        new GpxTimeOffset
      • getMilliseconds

        public long getMilliseconds()
        Get time offset in milliseconds.
        Returns:
        time offset in milliseconds
      • getSeconds

        public long getSeconds()
        Get time offset in seconds.
        Returns:
        time offset in seconds
      • formatOffset

        public java.lang.String formatOffset()
        Formats time offset.
        Returns:
        formatted time offset. Format: decimal number
      • parseOffset

        public static GpxTimeOffset parseOffset​(java.lang.String offset)
                                         throws java.text.ParseException
        Parses time offset.
        Parameters:
        offset - time offset. Format: decimal number
        Returns:
        time offset
        Throws:
        java.text.ParseException - if time offset can't be parsed
      • getDayOffset

        public int getDayOffset()
        Returns the day difference.
        Returns:
        the day difference
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object