Unix Technical Forum

summer time

This is a discussion on summer time within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Chick Tower <c.tower@deadspam.com> wrote: > Not in the BIOS. When you installed Slackware, it asked you if your clock ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 02-20-2008, 09:32 PM
Eef Hartman
 
Posts: n/a
Default Re: summer time

Chick Tower <c.tower@deadspam.com> wrote:
> Not in the BIOS. When you installed Slackware, it asked you if your clock
> was set to local time or UTC. According to /usr/doc/Linux-HOWTOs/Clock,
> this is stored in /etc/adjtime.


No, in /etc/hardwareclock.
It contains a line "UTC" when the hardware clock is in UTC or only
commentlines when it's in localtime:
if grep -wq "^UTC" /etc/hardwareclock ; then
echo "Setting system time from the hardware clock (UTC)."
/sbin/hwclock $CLOCK_OPT --utc --hctosys
else
echo "Setting system time from the hardware clock (localtime)."
/sbin/hwclock $CLOCK_OPT --localtime --hctosys
fi
(from /etc/rc.d/rc.S).

From that moment on the hardware clock isn't used anymore, Linux
keeps its own internal time. At shutdown the time is written back
the same way TO the hardware clock, to store optional changes
(like network time adjusts).
--
************************************************** ******************
** Eef Hartman, Delft University of Technology, dept. EWI/TW **
** e-mail: E.J.M.Hartman@math.tudelft.nl, fax: +31-15-278 7295 **
** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands **
************************************************** ******************
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:48 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com