<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[[代码阅读]PHP的strtotime()函数片选。。。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Mon, 02 Mar 2009 03:03:11 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	current['record'][$j]['ctime'] 刚开始的时候等于：2009-02-27 16:40:26，然后通过:str_replace('-',current['record'][$j]['ctime']);变成：20090227 16:40:26，再通过:strtotime(20090227 16:40:26);再加上一个TimeFormatter::timeFormat(1235724026);变为了2009-2-27 16:40&nbsp;&nbsp;呵呵：<br/><br/><div class="code">for($j=0; $j&lt;count($current&#91;&#039;record&#039;&#93;);$j++)<br/>&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $current&#91;&#039;record&#039;&#93;&#91;$j&#93;&#91;&#039;ctime&#039;&#93; = strtotime(str_replace(&#039;-&#039;,&#039;&#039;,$&nbsp;&nbsp;&nbsp;&nbsp;current&#91;&#039;record&#039;&#93;&#91;$j&#93;&#91;&#039;ctime&#039;&#93;)) ;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $current&#91;&#039;record&#039;&#93;&#91;$j&#93;&#91;&#039;ctime&#039;&#93; = TimeFormatter::timeFormat($current&#91;&#039;record&#039;&#93;&#91;$j&#93;&#91;&#039;ctime&#039;&#93;);&nbsp;&nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<br/>&#125;</div><br/><br/><br/>获取当前时间如何判断大小：<br/><br/><br/><div class="code">$result = abs(strtotime(date(&quot;Y-m-d H:i:s&quot;)) - strtotime(&quot;08-11-2008 19:29:47&quot;))/86400;<br/><br/>if($result&gt;0)&#123;<br/>echo &quot;已经过目标时间&quot;; //即今天的日期大<br/>&#125;elseif($result&lt;0)&#123;<br/>echo &quot;还未过目标时间&quot;; //即今天的日期小<br/>&#125;else&#123;<br/>echo &quot;今天是目标日期&quot;; //一样大<br/>&#125;</div>
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [代码阅读]PHP的strtotime()函数片选。。。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>