GetAndSetTime Method
Same as the GetTime method, but system clock is also set to the received time.
Syntax
async netclock.getAndSetTime(): Promise<void>
Remarks
This method is similar to the GetTime method, but the system clock is also set to the received time (adjusted for timezone differences).