[Tutor] Setting the PC Clock to Correct Time
Chris Fuller
cfuller084 at thinkingplanet.net
Sat Apr 19 18:24:05 CEST 2008
On Saturday 19 April 2008 10:45, Wayne Watson wrote:
> I have a Python program that runs 24/7, but is activated around dusk and
> de-activated from its task around dawn. My clock drifts about 4 sec/day.
> Is there some function that will fetch the correct time from the
> internet and reset the clock? I'd like to reset the clock each time the
> program is activated at dusk.
You need an NTP (network time protocol) client. You may have one built in to
your operating system.
Check out http://www.pool.ntp.org/ for tips on how to get started.
Cheers
More information about the Tutor
mailing list