[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug - Sheffield Linux User's Group] time keeping




>
> thanks chris i'll use the script. do they change with gmt/bst though?
>

The time they return is in UTC, which to all intents and purposes is GMT. 
It's up to you to ensure you've got your timezone set up correctly in Linux 
as that will do all the translation for the timezone (linux stores time as 
UTC). If you want your BIOS clock to store the time as UTC, then use 
/sbin/clock -wu to write the time back to the bios...if you want it as local 
time then it's just /sbin/clock -w (ie, omit the -u switch).

Also :) If you want to see what time netdate is fetching, then do:
	netdate ... 2>&1 | logger -p local2.info -t netdate

ie, feed the output of netdate through 'logger' - this will then put the time 
into the syslog. If you don't do this you'll never see what's being 
rerturned. Alternatively redirect the netdate output to a file.

Chris...


-- 
@}-,'--------------------------------------------------  Chris Johnson --'-{ [at] 
    / "(it is) crucial that we learn the difference / sixie [at] nccnet.co.uk  \
   / between Sex and Gender. Therein lies the key  /                       \ 
  / to our freedom" -- LB                         / www.nccnet.co.uk/~sixie \ 


---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.