Home
last modified time | relevance | path

Searched refs:systemUTC (Results 1 – 16 of 16) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKClock_System.java83 Clock system = Clock.systemUTC(); in test_instant()
97 Clock system = Clock.systemUTC(); in test_millis()
112 Clock test = Clock.systemUTC(); in test_systemUTC()
148 Clock test = Clock.systemUTC(); in test_withZone_fromUTC()
155 Clock.systemUTC().withZone(null); in test_withZone_null()
160 Clock a = Clock.systemUTC(); in test_equals()
161 Clock b = Clock.systemUTC(); in test_equals()
DTCKClock_Tick.java124 Clock.tick(Clock.systemUTC(), Duration.ofSeconds(Long.MAX_VALUE)); in test_tick_ClockDuration_maxDuration()
129 Clock.tick(Clock.systemUTC(), Duration.ofSeconds(0, 123)); in test_tick_ClockDuration_subMilliNotDivisible_123ns()
134 Clock.tick(Clock.systemUTC(), Duration.ofSeconds(0, 999)); in test_tick_ClockDuration_subMilliNotDivisible_999ns()
139 Clock.tick(Clock.systemUTC(), Duration.ofSeconds(0, 999_999_999)); in test_tick_ClockDuration_subMilliNotDivisible_999_999_999ns()
144 Clock.tick(Clock.systemUTC(), Duration.ofSeconds(0, -1)); in test_tick_ClockDuration_negative1ns()
149 Clock.tick(Clock.systemUTC(), Duration.ofSeconds(-1)); in test_tick_ClockDuration_negative1s()
159 Clock.tick(Clock.systemUTC(), null); in test_tick_ClockDuration_nullDuration()
237 assertEquals(a.equals(Clock.systemUTC()), false); in test__equals()
DTCKClock_Offset.java107 Clock.offset(Clock.systemUTC(), null); in test_offset_ClockDuration_nullDuration()
146 assertEquals(a.equals(Clock.systemUTC()), false); in test_equals()
DTCKClock_Fixed.java137 assertEquals(a.equals(Clock.systemUTC()), false); in test_equals()
DTCKInstant.java191 Instant expected = Instant.now(Clock.systemUTC()); in now()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestClock_System.java84 private static final Clock systemUTC = Clock.systemUTC(); field in TestClock_System
102 {"Clock.systemUTC()#1", Clock.systemUTC()}, in provider_sampleSystemUTC()
103 {"Clock.systemUTC()#2", Clock.systemUTC()}, in provider_sampleSystemUTC()
112 if (clock != systemUTC) { in test_systemUTC()
114 + "\n\texpected: " + toString(systemUTC) in test_systemUTC()
133 Clock highestUTC = Clock.systemUTC(); in test_ClockResolution()
275 static final Clock systemUTC = Clock.systemUTC(); field in TestClock_System.SystemClockOffset
316 testWithOffset(name, offset, systemUTC); in testWithOffset()
DTestClock_Offset.java89 Clock test = Clock.offset(Clock.systemUTC(), OFFSET); in test_toString()
DTestClock_Tick.java93 Clock test = Clock.tick(Clock.systemUTC(), Duration.ofMillis(500)); in test_toString()
DTestInstantSource.java50 assertSame(test.withZone(ZoneOffset.UTC), Clock.systemUTC()); in test_system()
/libcore/ojluni/src/test/java/time/tck/java/time/serial/
DTCKClockSerialization.java91 assertSerializable(Clock.systemUTC()); in test_systemClockSerializable()
/libcore/ojluni/src/main/java/java/time/
DClock.java159 public static Clock systemUTC() { in systemUTC() method in Clock
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKHijrahChronology.java123 …dateNow(ZoneId.of(ZoneOffset.UTC.getId())), HijrahChronology.INSTANCE.dateNow(Clock.systemUTC())) ; in test_dateNow()
DTCKThaiBuddhistChronology.java239 …w(ZoneId.of(ZoneOffset.UTC.getId())), ThaiBuddhistChronology.INSTANCE.dateNow(Clock.systemUTC())) ; in test_dateNow()
DTCKMinguoChronology.java202 …dateNow(ZoneId.of(ZoneOffset.UTC.getId())), MinguoChronology.INSTANCE.dateNow(Clock.systemUTC())) ; in test_dateNow()
DTCKJapaneseChronology.java331 …teNow(ZoneId.of(ZoneOffset.UTC.getId())), JapaneseChronology.INSTANCE.dateNow(Clock.systemUTC())) ; in test_dateNow()
/libcore/api/
Dcurrent.txt11385 method public static java.time.Clock systemUTC();