<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mainesysadmin.com &#187; time</title>
	<atom:link href="http://mainesysadmin.com/tag/time/feed/" rel="self" type="application/rss+xml" />
	<link>http://mainesysadmin.com</link>
	<description>SysAdmin in Maine</description>
	<lastBuildDate>Wed, 06 Jan 2010 16:24:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HowTo &#8211; setup time in linux command line</title>
		<link>http://mainesysadmin.com/2007/05/30/how-to-setup-time-in-linux-command-line/</link>
		<comments>http://mainesysadmin.com/2007/05/30/how-to-setup-time-in-linux-command-line/#comments</comments>
		<pubDate>Wed, 30 May 2007 13:43:00 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://mainesysadmin.com/blog/?p=10</guid>
		<description><![CDATA[I stole this from somewhere on the internet&#8230;
Setting Linux Time
Programs for working with time and date are:
* clock &#8211; This is a soft link to hwclock.
* date(1) &#8211; Print or set the system date and time.
* hwclock(8) &#8211; Sets the hardware clock based on values entered on the command line.
* setclock(8) &#8211; Sets the BIOS [...]]]></description>
			<content:encoded><![CDATA[<p>I stole this from somewhere on the internet&#8230;</p>
<p>Setting Linux Time<br />
Programs for working with time and date are:</p>
<p>* clock &#8211; This is a soft link to hwclock.<br />
* date(1) &#8211; Print or set the system date and time.<br />
* hwclock(8) &#8211; Sets the hardware clock based on values entered on the command line.<br />
* setclock(8) &#8211; Sets the BIOS hardware clock based on the time and setup of the system clock.<br />
* timeconfig(8) &#8211; A program used to configure the system configuration file &#8220;/etc/sysconfig/clock&#8221; which includes the type of clock and timezone.</p>
<p>An Example:</p>
<p>While logged in as root do the following:</p>
<p>1. Type &#8220;date&#8221;.<br />
2. You should see some variation of&#8221;</p>
<p>&#8220;Wed Nov 24, 9:29:17 EST 1999&#8243;<br />
3. To change the time type(as an example):</p>
<p>date -s 10:10<br />
4. The system response will be:</p>
<p>&#8220;Wed Nov 24, 10:10:02 EST 1999&#8243;<br />
5. Then if you want to set the hardware(BIOS) clock so the system will keep the time when it reboots type:</p>
<p>clock -w</p>
<p>or</p>
<p>setclock</p>
<p>The program setclock will set your hardware clock based on your system configuration parameters including whether or not your clock is set to universal time.</p>
<p>The &#8220;clock -w&#8221; command assumes your hardware clock is set to local time. If it is set for universal time you will want to type &#8220;clock -wu&#8221; rather than the &#8220;clock -w&#8221; in the line above. If you use the wrong option the time will be set incorrectly and you will need to do it again.</p>
<p>On a Redhat system, you can use the program &#8220;linuxconf&#8221; as root and page down to the next to the last line in the menu which is &#8220;date &amp; time&#8221;. Select it and see if the box named &#8220;universal format(GMT)&#8221;, next to &#8220;Store date in CMOS&#8221;, is checked. If is is not, you may save your time by typing &#8220;clock -w&#8221;. If it is checked use &#8220;clock -wu&#8221;.</p>
<p>Note: There is a man page for date that you can use to learn more. Type &#8220;man date&#8221;. You do not want to make any more changes to time and especially to the date than necessary, especially while the system is running, since this can trigger the &#8220;cron&#8221; daemon to perform various time related system tasks.</p>
<p>An alternate method to set time is.<br />
hwclock set date &#8220;2/24/2000&#8243; 		If you are using local time<br />
hwclock set date &#8220;2/24/2000&#8243; -utc		If you are using universal time</p>
<p>In the rc.sysinit startup script, this program is used with the options -adjust and -hctosys to adjust the hardware clock for drift, and set the system time to the hardware clock at the time of reboot.</p>
<p>On Redhat systems, there is a configuration program called &#8220;timeconfig&#8221; which can be used to configure the system configuration file /etc/sysconfig/clock and /etc/localtime. This program will use a graphical interface to let the user set the timezone and whether UTC time is used.</p>
]]></content:encoded>
			<wfw:commentRss>http://mainesysadmin.com/2007/05/30/how-to-setup-time-in-linux-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
