Searched refs:EPOCH (Results 1 – 14 of 14) sorted by relevance
/libcore/luni/src/test/java/libcore/java/time/ |
D | InstantTest.java | 35 assertEquals(false, Instant.EPOCH.isSupported((TemporalUnit) null)); in test_isSupported_TemporalUnit() 36 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.NANOS)); in test_isSupported_TemporalUnit() 37 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.MICROS)); in test_isSupported_TemporalUnit() 38 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.MILLIS)); in test_isSupported_TemporalUnit() 39 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.SECONDS)); in test_isSupported_TemporalUnit() 40 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.MINUTES)); in test_isSupported_TemporalUnit() 41 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.HOURS)); in test_isSupported_TemporalUnit() 42 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.HALF_DAYS)); in test_isSupported_TemporalUnit() 43 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.DAYS)); in test_isSupported_TemporalUnit() 44 assertEquals(false, Instant.EPOCH.isSupported(ChronoUnit.WEEKS)); in test_isSupported_TemporalUnit() [all …]
|
D | DurationTest.java | 49 assertSame(Instant.EPOCH, Duration.ZERO.addTo(Instant.EPOCH)); in test_addTo() 54 Duration.between(Instant.EPOCH, Instant.MAX).addTo(Instant.EPOCH)); in test_addTo() 57 assertEquals(Instant.EPOCH, in test_addTo() 58 Duration.between(Instant.MIN, Instant.EPOCH).addTo(Instant.MIN)); in test_addTo() 63 assertSame(Instant.EPOCH, Duration.ZERO.subtractFrom(Instant.EPOCH)); in test_subtractFrom() 65 Duration.between(Instant.MIN, Instant.EPOCH).subtractFrom(Instant.EPOCH)); in test_subtractFrom() 68 assertEquals(Instant.EPOCH, in test_subtractFrom() 69 Duration.between(Instant.EPOCH, Instant.MAX).subtractFrom(Instant.MAX)); in test_subtractFrom() 75 { Instant.EPOCH, Duration.between(Instant.EPOCH, Instant.MAX).plusNanos(1) }, in test_addTo_exceeds() 77 { Instant.EPOCH, Duration.between(Instant.EPOCH, Instant.MIN).minusNanos(1) }, in test_addTo_exceeds() [all …]
|
/libcore/luni/src/test/java/libcore/java/time/format/ |
D | DateTimeFormatterTest.java | 78 ZonedDateTime zonedDateTime = Instant.EPOCH.atZone(ZoneId.of("UTC")); in test_format_locale_agq() 86 ZonedDateTime zonedDateTime = Instant.EPOCH.atZone(ZoneId.of("UTC")); in test_format_locale_en_US()
|
/libcore/luni/src/test/java/libcore/java/time/zone/ |
D | ZoneRulesTest.java | 49 Instant.EPOCH, in test_of_ZoneOffset()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKZoneId.java | 237 assertEquals(test.getRules().getOffset(Instant.EPOCH), ZoneOffset.of(id)); in factory_of_String_offsetBasedValid_noPrefix() 285 assertEquals(test.getRules().getOffset(Instant.EPOCH), ZoneOffset.of(offsetId)); in factory_of_String_offsetBasedValid_prefixUTC() 296 assertEquals(test.getRules().getOffset(Instant.EPOCH), ZoneOffset.of(offsetId)); in factory_of_String_offsetBasedValid_prefixGMT() 307 assertEquals(test.getRules().getOffset(Instant.EPOCH), ZoneOffset.of(offsetId)); in factory_of_String_offsetBasedValid_prefixUT()
|
D | TCKInstant.java | 137 TemporalAccessor[] array = {TEST_12345_123456789, Instant.MIN, Instant.MAX, Instant.EPOCH}; in samples() 173 check(Instant.EPOCH, 0, 0); in constant_EPOCH() 441 {Instant.ofEpochSecond(-10), Instant.EPOCH, Instant.ofEpochSecond(-10), null}, 479 {Instant.ofEpochSecond(-10), Instant.EPOCH, Instant.ofEpochSecond(0), null},
|
D | TCKLocalTime.java | 456 LocalTime.ofInstant(Instant.EPOCH, (ZoneId) null); in factory_ofInstant_nullZone()
|
D | TCKZonedDateTime.java | 607 ZonedDateTime.ofInstant(Instant.EPOCH, null);
|
D | TCKLocalDateTime.java | 796 LocalDateTime.ofInstant(Instant.EPOCH, (ZoneId) null);
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | IsoChronologyTest.java | 119 IsoChronology.INSTANCE.zonedDateTime(Instant.EPOCH, null); in test_zonedDateTime_nullZone()
|
D | JapaneseChronologyTest.java | 66 JapaneseChronology.INSTANCE.zonedDateTime(Instant.EPOCH, null); in test_zonedDateTime_nullZone()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimePrintContext.java | 154 …temporal.get(OFFSET_SECONDS) != overrideZone.getRules().getOffset(Instant.EPOCH).getTotalSeconds()… in adjust()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Instant.java | 207 public static final Instant EPOCH = new Instant(0, 0); field in Instant 402 return EPOCH; in create()
|
D | ZoneId.java | 575 return rules.getOffset(Instant.EPOCH);
|