November 12th, 2004, 10:24 AM
how to connect to an NTP server, retrieve time?
I am new to python, I have used it a little but I am by no means fluent in it.
I am trying to write a small function that simply connects to an NTP (time) server, retrieves the current time, and then sets the system's time according to what the time server said.
Any help would be appreciated!
November 12th, 2004, 11:11 AM
What platform is it?
Here is bit of code
that gets the time.
It should be possible to graft on the system clock stuff from here.