<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[静怡家园]]></title> 
<link>http://www.zhanghaijun.com/index.php</link> 
<description><![CDATA[书山有路勤为径，学海无涯苦作舟！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[静怡家园]]></copyright>
<item>
<link>http://www.zhanghaijun.com/post//</link>
<title><![CDATA[Linux系统下的日期时间设置]]></title> 
<author>碟舞飞扬 &lt;webmaster@zhanghaijun.com&gt;</author>
<category><![CDATA[Linux技术]]></category>
<pubDate>Mon, 16 May 2011 17:31:30 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//</guid> 
<description>
<![CDATA[ 
	Linux时钟分为系统时钟（System Clock）和硬件（Real Time Clock，简称RTC）时钟。系统时钟是指当前Linux Kernel中的时钟，而硬件时钟则是主板上由电池供电的时钟，这个硬件时钟可以在BIOS中进行设置。当Linux启动时，硬件时钟会去读取系统时钟的设置，然后系统时钟就会独立于硬件运作。<br/> <br/>Linux中的所有命令（包括函数）都是采用的系统时钟设置。在Linux中，用于时钟查看和设置的命令主要有date、hwclock和 clock。其中，clock和hwclock用法相近，只用一个就行，只不过clock命令除了支持x86硬件体系外，还支持Alpha硬件体系。<br/> <br/>1、date<br/> <br/>查看系统时间<br/> <br/># date <br/><br/>设置系统时间 <br/><br/>#date -s “2009-12-28 13:34:00″<br/> <br/>2、clock<br/> <br/>查看硬件时间<br/> <br/># clock<br/> <br/>设置硬件时间<br/> clock –set –date “2009-12-28 13:34:00″<br/> <br/>3、硬件时间和系统时间的同步<br/> <br/>硬件时钟钟和系统时同步：<br/> <br/># clock –hctosys (注：hc为硬件时钟，sys为系统时钟，我理解为写硬件时间到系统时间。即把系统时钟改为硬件的时钟。)<br/> <br/>系统时钟和硬件时钟同步：<br/> 与上面的正好相反<br/> # clock –systohc (注：hc为硬件时钟，sys为系统时钟，我理解为写系统时间到硬件时间。即把硬件时钟改为系统时钟。)
]]>
</description>
</item><item>
<link>http://www.zhanghaijun.com/post//#blogcomment</link>
<title><![CDATA[[评论] Linux系统下的日期时间设置]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>