Lines Matching refs:Instant
102 * This approach allows an alternate clock, such as {@link #fixed(Instant, ZoneId) fixed}
119 * as described in {@link Instant}. If the implementation wraps a source that provides leap
348 public static Clock fixed(Instant fixedInstant, ZoneId zone) {
420 * Most applications should avoid this method and use {@link Instant} to represent
444 public abstract Instant instant();
524 public Instant instant() {
558 return Instant.ofEpochSecond(localOffset, adjustment);
590 private final Instant instant;
593 FixedClock(Instant fixedInstant, ZoneId zone) {
613 public Instant instant() {
663 public Instant instant() {
714 public Instant instant() {
717 return Instant.ofEpochMilli(millis - Math.floorMod(millis, tickNanos / 1000_000L));
719 Instant instant = baseClock.instant();