Class LinuxClock

java.lang.Object
PamUtils.clock.OSClock
PamUtils.clock.LinuxClock

public class LinuxClock extends OSClock
  • Constructor Details

    • LinuxClock

      public LinuxClock(String osName)
  • Method Details

    • setSystemTime

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