Home
last modified time | relevance | path

Searched refs:baseSource (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/main/java/java/time/
DInstantSource.java150 static InstantSource tick(InstantSource baseSource, Duration tickDuration) { in tick() argument
151 Objects.requireNonNull(baseSource, "baseSource"); in tick()
152 return Clock.tick(baseSource.withZone(ZoneOffset.UTC), tickDuration); in tick()
193 static InstantSource offset(InstantSource baseSource, Duration offsetDuration) { in offset() argument
194 Objects.requireNonNull(baseSource, "baseSource"); in offset()
195 return Clock.offset(baseSource.withZone(ZoneOffset.UTC), offsetDuration); in offset()
DClock.java797 private final InstantSource baseSource; field in Clock.SourceClock
800 SourceClock(InstantSource baseSource, ZoneId zone) { in SourceClock() argument
801 this.baseSource = baseSource; in SourceClock()
813 return new SourceClock(baseSource, zone); in withZone()
817 return baseSource.millis(); in millis()
821 return baseSource.instant(); in instant()
827 && baseSource.equals(other.baseSource); in equals()
831 return baseSource.hashCode() ^ zone.hashCode(); in hashCode()
835 return "SourceClock[" + baseSource + "," + zone + "]"; in toString()