@Test public void testFromGpsYearSecMillis() { long instant = TimeEncoding.fromGpsYearSecMillis(2010, 15, 200); assertEquals("2010-01-01T00:00:00.200Z", TimeEncoding.toString(instant)); }
public static long fromGpsYearSecMillis(int year, int secOfYear, int millis) { Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC")); cal.clear(); cal.set(Calendar.YEAR, year); cal.add(Calendar.SECOND, secOfYear); cal.add(Calendar.MILLISECOND, millis); return GPS_TAI_DELTA + cal.getTimeInMillis(); }
TimeEncoding { public static long fromGpsYearSecMillis(int year, int secOfYear, int millis) { Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC")); cal.clear(); cal.set(Calendar.YEAR, year); cal.add(Calendar.SECOND, secOfYear); cal.add(Calendar.MILLISECOND, millis); return GPS_TAI_DELTA + cal.getTimeInMillis(); } }
TimeEncoding { public static long fromGpsYearSecMillis(int year, int secOfYear, int millis) { Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC")); cal.clear(); cal.set(Calendar.YEAR, year); cal.add(Calendar.SECOND, secOfYear); cal.add(Calendar.MILLISECOND, millis); return GPS_TAI_DELTA + cal.getTimeInMillis(); }  }
TimeEncoding { public static long fromGpsYearSecMillis(int year, int secOfYear, int millis) { Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC")); cal.clear(); cal.set(Calendar.YEAR, year); cal.add(Calendar.SECOND, secOfYear); cal.add(Calendar.MILLISECOND, millis); return GPS_TAI_DELTA + cal.getTimeInMillis(); }  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 fromGpsYearSecMillis(int year, int secOfYear, int millis) { Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC")); cal.clear(); cal.set(Calendar.YEAR, year); cal.add(Calendar.SECOND, secOfYear); cal.add(Calendar.MILLISECOND, millis); return GPS_TAI_DELTA + cal.getTimeInMillis(); }  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; }