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
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to