Searched refs:OFFSET_MIN (Results 1 – 2 of 2) sorted by relevance
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestOffsetDateTime_instants.java | 83 private static final ZoneOffset OFFSET_MIN = ZoneOffset.ofHours(-18); field in TestOffsetDateTime_instants 157 … Instant instant = Instant.ofEpochSecond(days * 24L * 60L * 60L - OFFSET_MIN.getTotalSeconds()); in factory_ofInstant_minWithMinOffset() 158 OffsetDateTime test = OffsetDateTime.ofInstant(instant, OFFSET_MIN); in factory_ofInstant_minWithMinOffset() 162 assertEquals(test.getOffset(), OFFSET_MIN); in factory_ofInstant_minWithMinOffset() local 189 …Instant instant = Instant.ofEpochSecond((days + 1) * 24L * 60L * 60L - 1 - OFFSET_MIN.getTotalSeco… in factory_ofInstant_maxWithMinOffset() 190 OffsetDateTime test = OffsetDateTime.ofInstant(instant, OFFSET_MIN); in factory_ofInstant_maxWithMinOffset() 194 assertEquals(test.getOffset(), OFFSET_MIN); in factory_ofInstant_maxWithMinOffset() local 227 OffsetDateTime.ofInstant(instant, OFFSET_MIN); in factory_ofInstant_maxInstantWithMinOffset()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKZonedDateTime.java | 150 private static final ZoneOffset OFFSET_MIN = ZoneOffset.MIN; field in TCKZonedDateTime 506 … Instant instant = Instant.ofEpochSecond(days * 24L * 60L * 60L - OFFSET_MIN.getTotalSeconds()); 507 ZonedDateTime test = ZonedDateTime.ofInstant(instant, OFFSET_MIN); 511 assertEquals(test.getOffset(), OFFSET_MIN); 540 …Instant instant = Instant.ofEpochSecond((days + 1) * 24L * 60L * 60L - 1 - OFFSET_MIN.getTotalSeco… 541 ZonedDateTime test = ZonedDateTime.ofInstant(instant, OFFSET_MIN); 545 assertEquals(test.getOffset(), OFFSET_MIN); 579 ZonedDateTime.ofInstant(instant, OFFSET_MIN);
|