Searched refs:ntpEraSeconds (Results 1 – 2 of 2) sorted by relevance
82 long ntpEraSeconds = instant.getEpochSecond() + OFFSET_1900_TO_1970; in fromInstant() local83 if (ntpEraSeconds < 0) { in fromInstant()84 ntpEraSeconds = SECONDS_IN_ERA - (-ntpEraSeconds % SECONDS_IN_ERA); in fromInstant()86 ntpEraSeconds %= SECONDS_IN_ERA; in fromInstant()91 return new Timestamp64(ntpEraSeconds, fractionBits); in fromInstant()
54 private static void assertComponentCreation(long ntpEraSeconds, int fractionBits) { in assertComponentCreation() argument55 Timestamp64 value = Timestamp64.fromComponents(ntpEraSeconds, fractionBits); in assertComponentCreation()56 assertEquals(ntpEraSeconds, value.getEraSeconds()); in assertComponentCreation()