@Test public void testGetJavaGpsFromInstant() { String utc = "2010-01-01T00:00:00"; String javagps = "2010-01-01T00:00:15.000"; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS"); sdf.setTimeZone(TimeZone.getTimeZone("UTC")); long instant = TimeEncoding.parse(utc); long jt = TimeEncoding.getJavaGpsFromInstant(instant); String s = sdf.format(new Date(jt)); assertEquals(javagps, s); }
public static long getJavaGpsFromInstant(long instant) { return instant - 19000; }
TimeEncoding { public static long getJavaGpsFromInstant(long instant) { return instant - 19000; } }
TimeEncoding { public static long getJavaGpsFromInstant(long instant) { return instant - 19000; }  }
TimeEncoding { public static long getJavaGpsFromInstant(long instant) { return instant - 19000; }  static void setUp(); static void setUp(InputStream in); @Deprecated static long currentInstant(); static long getWallclockTime(); static String toString(long instant); static String toOrdinalDateTime(long instant); static String toWinCompatibleDateTime(long instant); static String toCombinedFormat(long instant); static long fromGpsCcsdsTime(int coarseTime, byte fineTime); static GpsCcsdsTime toGpsTime(final long instant); static GpsCcsdsTime getCurrentGpsTime(); static long toGpsTimeMillisec(final long instant); static long fromGpsYearSecMillis(int year, int secOfYear, int millis); static TaiUtcConverter.DateTimeComponents toUtc(long instant); static List<ValidityLine> getTaiUtcConversionTable(); static long parse(String s); @Deprecated static long fromUnixTime(long milliseconds); static long fromUnixMillisec(long milliseconds); static long fromUnixTime(long seconds, int microseconds); static long toUnixMillisec(long instant); static long fromCalendar(Calendar cal); static long fromDate(Date date); static Calendar toCalendar(long instant); static long getJavaGpsFromInstant(long instant); static long getInstantfromJavaGps(long javagps); static long fromGpsMillisec(long gpstime); static long fromTaiMillisec(long taitime); static long toTaiMillisec(long instant); static long fromJ2000Millisec(long j2000time); static long toJ2000Millisec(long instant); static long fromProtobufTimestamp(Timestamp ts); static Timestamp toProtobufTimestamp(long instant); }
TimeEncoding { public static long getJavaGpsFromInstant(long instant) { return instant - 19000; }  static void setUp(); static void setUp(InputStream in); @Deprecated static long currentInstant(); static long getWallclockTime(); static String toString(long instant); static String toOrdinalDateTime(long instant); static String toWinCompatibleDateTime(long instant); static String toCombinedFormat(long instant); static long fromGpsCcsdsTime(int coarseTime, byte fineTime); static GpsCcsdsTime toGpsTime(final long instant); static GpsCcsdsTime getCurrentGpsTime(); static long toGpsTimeMillisec(final long instant); static long fromGpsYearSecMillis(int year, int secOfYear, int millis); static TaiUtcConverter.DateTimeComponents toUtc(long instant); static List<ValidityLine> getTaiUtcConversionTable(); static long parse(String s); @Deprecated static long fromUnixTime(long milliseconds); static long fromUnixMillisec(long milliseconds); static long fromUnixTime(long seconds, int microseconds); static long toUnixMillisec(long instant); static long fromCalendar(Calendar cal); static long fromDate(Date date); static Calendar toCalendar(long instant); static long getJavaGpsFromInstant(long instant); static long getInstantfromJavaGps(long javagps); static long fromGpsMillisec(long gpstime); static long fromTaiMillisec(long taitime); static long toTaiMillisec(long instant); static long fromJ2000Millisec(long j2000time); static long toJ2000Millisec(long instant); static long fromProtobufTimestamp(Timestamp ts); static Timestamp toProtobufTimestamp(long instant); static final long INVALID_INSTANT; static final long MIN_INSTANT; static long MAX_INSTANT; }