You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This script can do it but needs elevated privileges:
importtimeimportostry:
importntplibclient=ntplib.NTPClient()
response=client.request('pool.ntp.org')
os.system('date '+time.strftime('%m%d%H%M%Y.%S',time.localtime(response.tx_time)))
except:
print('Could not sync with time server.')
print('Done.')
The text was updated successfully, but these errors were encountered:
This script can do it but needs elevated privileges:
The text was updated successfully, but these errors were encountered: