Class OffsetClock


  • public class OffsetClock
    extends java.time.Clock
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.Duration getOffset()  
      java.time.ZoneId getZone()  
      java.time.Instant instant()  
      void reset()  
      void setOffset​(java.time.Duration offset)  
      java.time.Clock withZone​(java.time.ZoneId zone)  
      • Methods inherited from class java.time.Clock

        equals, fixed, hashCode, millis, offset, system, systemDefaultZone, systemUTC, tick, tickMillis, tickMinutes, tickSeconds
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OffsetClock

        public OffsetClock()
      • OffsetClock

        public OffsetClock​(java.time.Clock clock)
      • OffsetClock

        public OffsetClock​(java.time.Duration offset)
    • Method Detail

      • getZone

        public java.time.ZoneId getZone()
        Specified by:
        getZone in class java.time.Clock
      • withZone

        public java.time.Clock withZone​(java.time.ZoneId zone)
        Specified by:
        withZone in class java.time.Clock
      • instant

        public java.time.Instant instant()
        Specified by:
        instant in class java.time.Clock
      • getOffset

        public java.time.Duration getOffset()
      • setOffset

        public void setOffset​(java.time.Duration offset)
      • reset

        public void reset()