Clock?

Jerry Van Baren gvb.olpc at gmail.com
Sat Dec 22 10:07:52 EST 2007


Bernardo Innocenti wrote:
> Joshua Minor wrote:
>> Is it reasonable to assume that the XO's clock is set correctly?   
>> Specifically I'd like to use python's time.time() to determine which  
>> participant of an activity has been using it the longest.
> 
> A NetworkManager callout could set it, but it seems we're not
> doing it yet.
> 
>> Alternately, is there a simple way to query the network for the  
>> current time?
> 
> Try:
> 
>    ntpdate pool.ntp.org
> 
> This will also set the system clock, but not save the time
> in the hardware clock.
> 
> We're also not setting the TZ correctly at this time, and I'm
> almost sure that couldn't be done automatically from the
> manufacturing data.

...and the, in a root shell (open the terminal and su), use hwclock to 
set the hardware clock from the system time (I also set it to UTC, 
should be a Good Thing, but no guarantees).

hwclock --systohc --utc

gvb



More information about the Devel mailing list