<?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>Andrew Beaton :: FAQ &#187; Linux</title>
	<atom:link href="http://andrewbeaton.net/faq/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrewbeaton.net/faq</link>
	<description>Tips from the world of a software developer</description>
	<lastBuildDate>Wed, 10 Mar 2010 21:03:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Set date and time in Linux</title>
		<link>http://andrewbeaton.net/faq/2009/11/13/set-date-and-time-in-linux/</link>
		<comments>http://andrewbeaton.net/faq/2009/11/13/set-date-and-time-in-linux/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 23:38:54 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://andrewbeaton.com/faq/?p=57</guid>
		<description><![CDATA[Use the following syntax to set new data and time:

# date set=&#34;STRING&#34;

For example, set new data to 2 Oct 2006 18:00:00, type the following command as root user:

# date -s &#34;2 OCT 2006 18:00:00&#34;

OR

# date set=&#34;2 OCT 2006 18:00:00&#34;

You can also simplify format using following syntax:

# date +%Y%m%d -s &#34;20081128&#34;

To set time use the following [...]]]></description>
			<content:encoded><![CDATA[<p>Use the following syntax to set new data and time:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># date set=&quot;STRING&quot;</span></pre></div></div>

<p>For example, set new data to 2 Oct 2006 18:00:00, type the following command as root user:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># date -s &quot;2 OCT 2006 18:00:00&quot;</span></pre></div></div>

<p>OR</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># date set=&quot;2 OCT 2006 18:00:00&quot;</span></pre></div></div>

<p>You can also simplify format using following syntax:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># date +%Y%m%d -s &quot;20081128&quot;</span></pre></div></div>

<p>To set time use the following syntax:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># date +%T -s &quot;10:13:13&quot;</span></pre></div></div>

<p>Where,</p>
<p>   * 10: Hour (hh)<br />
   * 13: Minute (mm)<br />
   * 30: Second (ss)</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewbeaton.net/faq/2009/11/13/set-date-and-time-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
