Home
last modified time | relevance | path

Searched refs:EPOCH (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/test/java/libcore/java/time/
DInstantTest.java35 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 …]
DDurationTest.java49 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/
DDateTimeFormatterTest.java78 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/
DZoneRulesTest.java49 Instant.EPOCH, in test_of_ZoneOffset()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKZoneId.java237 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()
DTCKInstant.java137 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},
DTCKLocalTime.java456 LocalTime.ofInstant(Instant.EPOCH, (ZoneId) null); in factory_ofInstant_nullZone()
DTCKZonedDateTime.java607 ZonedDateTime.ofInstant(Instant.EPOCH, null);
DTCKLocalDateTime.java796 LocalDateTime.ofInstant(Instant.EPOCH, (ZoneId) null);
/libcore/luni/src/test/java/libcore/java/time/chrono/
DIsoChronologyTest.java119 IsoChronology.INSTANCE.zonedDateTime(Instant.EPOCH, null); in test_zonedDateTime_nullZone()
DJapaneseChronologyTest.java66 JapaneseChronology.INSTANCE.zonedDateTime(Instant.EPOCH, null); in test_zonedDateTime_nullZone()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimePrintContext.java154 …temporal.get(OFFSET_SECONDS) != overrideZone.getRules().getOffset(Instant.EPOCH).getTotalSeconds()… in adjust()
/libcore/ojluni/src/main/java/java/time/
DInstant.java207 public static final Instant EPOCH = new Instant(0, 0); field in Instant
402 return EPOCH; in create()
DZoneId.java575 return rules.getOffset(Instant.EPOCH);