Class OSClock

java.lang.Object
PamUtils.clock.OSClock
Direct Known Subclasses:
LinuxClock, WindowsClock

public abstract class OSClock extends Object
Functions to set the OS clock for a particular operating system.
  • Constructor Details

    • OSClock

      public OSClock(String osName)
  • Method Details

    • setSystemTime

      public abstract boolean setSystemTime(long timeMilliseconds)
      Set the system clock to the given time in milliseconds.
      Parameters:
      timeMilliseconds - time in millis, UTC, probably from GPS, but might be from internet time.
      Returns:
      true if sucessful.