Changeset b568bbaf for chapter07/setclock.xml
- Timestamp:
- 07/02/2005 05:16:45 PM (19 years ago)
- Branches:
- 6.1, 6.1.1
- Children:
- b8a3fb2
- Parents:
- 464fa64
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/setclock.xml
r464fa64 rb568bbaf 12 12 <secondary>configuring</secondary></indexterm> 13 13 14 <para>The <command>setclock</command> script reads the time from the hardware clock,15 also known as the BIOS or the Complementary Metal Oxide Semiconductor16 (CMOS) clock. If the hardware clock is set to UTC, this script will convert the hardware clock's time to17 the local time using the <filename>/etc/localtime</filename> file18 (which tells the <command>hwclock</command> program which timezonethe19 user is in). There is no way to20 detect whether or not the hardware clock is set to UTC time, so this21 needs to be manually configured.</para>14 <para>The <command>setclock</command> script reads the time from the hardware 15 clock, also known as the BIOS or the Complementary Metal Oxide Semiconductor 16 (CMOS) clock. If the hardware clock is set to UTC, this script will convert the 17 hardware clock's time to the local time using the 18 <filename>/etc/localtime</filename> file (which tells the 19 <command>hwclock</command> program which timezone the user is in). There is no 20 way to detect whether or not the hardware clock is set to UTC time, so this 21 needs to be configured manually.</para> 22 22 23 <para>If you cannot remember whether or not the hardware 24 clock is set to UTC time, find out by running 25 the <userinput>hwclock --localtime --show</userinput> command. This will tell 26 what the current time is according to the hardware clock. If this time 27 matches whatever your watch says, then the hardware clock is set to 28 local time. If the output from <command>hwclock</command> is not local 29 time, chances are it is set to UTC time. Verify this by adding or 30 subtracting the proper amount of hours for the timezone to this 31 <command>hwclock</command> time. For example, if you live in the MST 23 <para>If you cannot remember whether or not the hardware clock is set to UTC 24 time, find out by running the <userinput>hwclock --localtime --show</userinput> 25 command. This will display what the current time is according to the hardware 26 clock. If this time matches whatever your watch says, then the hardware clock is 27 set to local time. If the output from <command>hwclock</command> is not local 28 time, chances are it is set to UTC time. Verify this by adding or subtracting 29 the proper amount of hours for the timezone to the time shown by 30 <command>hwclock</command>. For example, if you are currently in the MST 32 31 timezone, which is also known as GMT -0700, add seven hours to the local 33 time. Then, account for Daylight Savings Time, which requires 34 subtracting an hour (or only add six in the first place) during the summer 35 months.</para> 32 time.</para> 36 33 37 34 <para>Change the value of the <envar>UTC</envar> variable below
Note:
See TracChangeset
for help on using the changeset viewer.