<?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>阿债的山寨实验室 &#187; datetime</title>
	<atom:link href="http://blog.declab.com/tag/datetime/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.declab.com</link>
	<description></description>
	<lastBuildDate>Thu, 27 May 2010 03:45:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Linux的时间与时区设置</title>
		<link>http://blog.declab.com/server/2008/nginx%e4%bd%9c%e4%b8%baphp%e7%9a%84web%e6%9c%8d%e5%8a%a1%e5%99%a8/</link>
		<comments>http://blog.declab.com/server/2008/nginx%e4%bd%9c%e4%b8%baphp%e7%9a%84web%e6%9c%8d%e5%8a%a1%e5%99%a8/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 10:56:28 +0000</pubDate>
		<dc:creator>阿债</dc:creator>
				<category><![CDATA[服务器管理]]></category>
		<category><![CDATA[datetime]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[timezone]]></category>

		<guid isPermaLink="false">http://rblog.declab.com/2008/1/nginx%e4%bd%9c%e4%b8%baphp%e7%9a%84web%e6%9c%8d%e5%8a%a1%e5%99%a8/</guid>
		<description><![CDATA[设置时区，我们是东八时区，时区文件一般放在 /usr/share/zoneinfo/下面，还好里面有个香港的。我们建一个快捷方式 ln -s /usr/share/zoneinfo/HongKong /etc/localtime 如果/etc/下已经存在 localtime文件，请将原来的文件改名 mv /etc/localtime /etc/localtime_bak 查看时间： date #显示 Wed Sep 26 18:10:30 HKT 2007 date ‘+%D’ #显示 09/26/07 date ‘+%F %T’ #显示 2007-09-26 18:10:30 date ‘+%Y-%m-%d %H:%M:%S’ #显示同上 date ‘+%s’ #显示时间戳 修改日期（设为2007-09-26） date -s 070926 设置时间 date -s 18:15:00 No related posts. 以上关联文章由 Yet Another Related Posts Plugin 提供支持。


No related posts.

以上关联文章由 <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a> 提供支持。]]></description>
			<content:encoded><![CDATA[<p>设置时区，我们是东八时区，时区文件一般放在 /usr/share/zoneinfo/下面，还好里面有个香港的。我们建一个快捷方式</p>
<pre lang="bash" line="1">ln -s /usr/share/zoneinfo/HongKong /etc/localtime</pre>
<p><span id="more-8"></span></p>
<p>如果/etc/下已经存在 localtime文件，请将原来的文件改名</p>
<pre lang="bash" line="1">mv /etc/localtime /etc/localtime_bak</pre>
<p>查看时间：</p>
<pre lang="bash" line="1">date    #显示 Wed Sep 26 18:10:30 HKT 2007
date ‘+%D’ #显示 09/26/07
date ‘+%F %T’ #显示 2007-09-26 18:10:30
date ‘+%Y-%m-%d %H:%M:%S’ #显示同上
date ‘+%s’ #显示时间戳</pre>
<p>修改日期（设为2007-09-26）</p>
<pre lang="bash" line="1">date   -s 070926</pre>
<p>设置时间</p>
<pre lang="bash" line="1">date -s 18:15:00</pre>


<p>No related posts.</p>
<p>以上关联文章由 <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a> 提供支持。</p>]]></content:encoded>
			<wfw:commentRss>http://blog.declab.com/server/2008/nginx%e4%bd%9c%e4%b8%baphp%e7%9a%84web%e6%9c%8d%e5%8a%a1%e5%99%a8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
