Package PamUtils.clock
Class WindowsClock
java.lang.Object
PamUtils.clock.OSClock
PamUtils.clock.WindowsClock
-
Constructor Summary
ConstructorsConstructorDescriptionWindowsClock(String osName) Some information at https://www.fortect.com/windows-optimization-tips/fixed-non-admin-users-cant-change-time-zone-in-windows-11/ which didn't seem to help bit might with a bit more effort and a reboot. -
Method Summary
Modifier and TypeMethodDescriptionbooleansetSystemTime(long timeMilliseconds) Set the system clock to the given time in milliseconds.
-
Constructor Details
-
WindowsClock
Some information at https://www.fortect.com/windows-optimization-tips/fixed-non-admin-users-cant-change-time-zone-in-windows-11/ which didn't seem to help bit might with a bit more effort and a reboot. Currently still getting error A required privilege is not held by the client.- Parameters:
osName-
-
-
Method Details
-
setSystemTime
public boolean setSystemTime(long timeMilliseconds) Description copied from class:OSClockSet the system clock to the given time in milliseconds.- Specified by:
setSystemTimein classOSClock- Parameters:
timeMilliseconds- time in millis, UTC, probably from GPS, but might be from internet time.- Returns:
- true if sucessful.
-