Searched refs:OFFSET_MAX (Results 1 – 2 of 2) sorted by relevance
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestOffsetDateTime_instants.java | 82 private static final ZoneOffset OFFSET_MAX = ZoneOffset.ofHours(18); field in TestOffsetDateTime_instants 173 … Instant instant = Instant.ofEpochSecond(days * 24L * 60L * 60L - OFFSET_MAX.getTotalSeconds()); in factory_ofInstant_minWithMaxOffset() 174 OffsetDateTime test = OffsetDateTime.ofInstant(instant, OFFSET_MAX); in factory_ofInstant_minWithMaxOffset() 178 assertEquals(test.getOffset(), OFFSET_MAX); in factory_ofInstant_minWithMaxOffset() local 205 …Instant instant = Instant.ofEpochSecond((days + 1) * 24L * 60L * 60L - 1 - OFFSET_MAX.getTotalSeco… in factory_ofInstant_maxWithMaxOffset() 206 OffsetDateTime test = OffsetDateTime.ofInstant(instant, OFFSET_MAX); in factory_ofInstant_maxWithMaxOffset() 210 assertEquals(test.getOffset(), OFFSET_MAX); in factory_ofInstant_maxWithMaxOffset() local 221 OffsetDateTime.ofInstant(instant, OFFSET_MAX); in factory_ofInstant_maxInstantWithMaxOffset()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKZonedDateTime.java | 149 private static final ZoneOffset OFFSET_MAX = ZoneOffset.MAX; field in TCKZonedDateTime 523 … Instant instant = Instant.ofEpochSecond(days * 24L * 60L * 60L - OFFSET_MAX.getTotalSeconds()); 524 ZonedDateTime test = ZonedDateTime.ofInstant(instant, OFFSET_MAX); 528 assertEquals(test.getOffset(), OFFSET_MAX); 557 …Instant instant = Instant.ofEpochSecond((days + 1) * 24L * 60L * 60L - 1 - OFFSET_MAX.getTotalSeco… 558 ZonedDateTime test = ZonedDateTime.ofInstant(instant, OFFSET_MAX); 562 assertEquals(test.getOffset(), OFFSET_MAX); 573 ZonedDateTime.ofInstant(instant, OFFSET_MAX);
|