<?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>IT狂人的博客 &#187; time</title>
	<atom:link href="http://www.yinzhili.com/tag/time/feed" rel="self" type="application/rss+xml" />
	<link>http://www.yinzhili.com</link>
	<description>世界上有10种人:一种是懂二进制的，另一种是不懂的。</description>
	<lastBuildDate>Thu, 22 Jul 2010 03:51:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wordpress常用时间参数</title>
		<link>http://www.yinzhili.com/2010/01/wordpress-time-parameters.html</link>
		<comments>http://www.yinzhili.com/2010/01/wordpress-time-parameters.html#comments</comments>
		<pubDate>Sat, 02 Jan 2010 05:01:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.yinzhili.com/?p=161</guid>
		<description><![CDATA[使用Wordpress国外主题的时候常常要改动其中的时间参数，因为老外他们使用的时间格式和我们大不一样，比如说同样是一个日期：2010年1月2日，美国英语里面可能写成 Jan 2nd 2010，英国英语里则是 2nd Jan 2010，而我们汉语里是 2010年1月2日。好在Wordpress提供了[......]<p class='read-more'><a href='http://www.yinzhili.com/2010/01/wordpress-time-parameters.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>使用Wordpress国外主题的时候常常要改动其中的时间参数，因为老外他们使用的时间格式和我们大不一样，比如说同样是一个日期：2010年1月2日，美国英语里面可能写成 Jan 2nd 2010，英国英语里则是 2nd Jan 2010，而我们汉语里是 2010年1月2日。好在Wordpress提供了很多时间参数，用户可以输出自定义的日期，这一点和PHP里面的date函数有点类似。</p>
<p>下面是一些常用的参数：</p>
<p>* a代表小写的英语的上下午，如am、pm<br />
* A代表大写的英语的上下午，如AM、PM<br />
* d代表英语的日期（小于10仍为两位数写法），如05、12<br />
* D代表中文的星期，如五、七<br />
* F代表中文的月份（包括“月”这个字），如五月、十二月<br />
* g代表英语的小时（小于10为一位数写法），如5、12<br />
* G代表英语的小时（小于10仍为两位数写法），如05、12<br />
* h代表英语的分钟（小于10为一位数写法），如5、12<br />
* H代表英语的分钟（小于10仍为两位数写法），如05、12<br />
* j代表英语的日期（小于10为一位数写法），如08-02-09<br />
* l代表中文的星期（包括“星期”这两个字），如星期五、星期七<br />
* m代表英语的月份（小于10仍为两位数写法），如05、12<br />
* M代表英语的月份（以单词的形式显示），如Jun<br />
* n代表英语的月份（小于10为一位数写法），如5、12<br />
* O代表英语的时区，如+0800<br />
* r代表完整的日期时间，如Tue, 06 Jun 2006 18:37:11 +0800<br />
* S代表日期的序数后缀，如st、th<br />
* T代表英语的时区（以单词的形式显示），如CST<br />
* w代表英语的星期，如5、7<br />
* W代表周数，如23<br />
* y代表两位数年份，如07、08<br />
* Y代表四位数年份，如2007、2008<br />
* z代表天数，如156</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yinzhili.com/2010/01/wordpress-time-parameters.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
