<?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>FVF.me&#039;Ye &#187; 时间</title>
	<atom:link href="http://fvf.me/tag/%e6%97%b6%e9%97%b4/feed" rel="self" type="application/rss+xml" />
	<link>http://fvf.me</link>
	<description>我是孤独的根号5</description>
	<lastBuildDate>Mon, 19 Sep 2011 12:10:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>显示当前时间</title>
		<link>http://fvf.me/wordpress/tips/displays-the-current-time.html</link>
		<comments>http://fvf.me/wordpress/tips/displays-the-current-time.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 08:41:31 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[小技巧]]></category>
		<category><![CDATA[时间]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/%e6%98%be%e7%a4%ba%e5%bd%93%e5%89%8d%e6%97%b6%e9%97%b4.html</guid>
		<description><![CDATA[给wordpress博客加上时间，其实很简单，简单的几行代码就行了，你可以在你想要加的地方加入就可以了. &#60;?php &#160;&#160;&#160; $hourdiff = &#34;0&#34;; /* time difference, ex: &#34;-8&#34; or "8" */ &#160;&#160;&#160; $timeadjust = ($hourdiff * 60 * 60); &#160;&#160;&#160; $melbdate = date(&#34;Y年m月d日 H:i&#34;,time() + $timeadjust); &#160;&#160;&#160; print (&#34;$melbdate&#34;); ?&#62; 当然了也可以在前面套上 &#60;div&#62;&#60;/div&#62;标签，方便用css控制，关于时间的调节，国内主机可以设置为 $hourdiff = &#34;0&#34; 这其中的&#34;0&#34;就是用来调节时区的，很简单，要是不知道所在时区，多该几次就知道]]></description>
			<content:encoded><![CDATA[<p>给wordpress博客加上时间，其实很简单，简单的几行代码就行了，你可以在你想要加的地方加入就可以了.</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 255); ">&lt;?php</span> <br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(204, 204, 0); ">$hourdiff</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(187, 187, 0); ">&quot;0&quot;</span>; <span style="color: rgb(105, 105, 105); ">/* time difference, ex: &quot;-8&quot; or "8" */</span> <br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(204, 204, 0); ">$timeadjust</span> <span style="color: rgb(192, 192, 192); ">=</span> (<span style="color: rgb(204, 204, 0); ">$hourdiff</span> <span style="color: rgb(192, 192, 192); ">*</span> <span style="color: rgb(192, 192, 192); ">60</span> <span style="color: rgb(192, 192, 192); ">*</span> <span style="color: rgb(192, 192, 192); ">60</span>); <br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(204, 204, 0); ">$melbdate</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(192, 192, 192); ">date</span>(<span style="color: rgb(187, 187, 0); ">&quot;Y年m月d日 H:i&quot;</span><span style="color: rgb(192, 192, 192); ">,</span><span style="color: rgb(192, 192, 192); ">time</span>() <span style="color: rgb(192, 192, 192); ">+</span> <span style="color: rgb(204, 204, 0); ">$timeadjust</span>); <br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">print</span> (<span style="color: rgb(187, 187, 0); ">&quot;</span><span style="color: rgb(187, 187, 0); ">$melbdate</span><span style="color: rgb(187, 187, 0); ">&quot;</span>); <br /> <span style="color: rgb(255, 255, 255); ">?&gt;</span></div>
<p>当然了也可以在前面套上 &lt;div&gt;&lt;/div&gt;标签，方便用css控制，关于时间的调节，国内主机可以设置为 $hourdiff = &quot;0&quot; 这其中的&quot;0&quot;就是用来调节时区的，很简单，要是不知道所在时区，多该几次就知道</p>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/tips/displays-the-current-time.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

