<?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>时间格式 &#8211; LPC影子技术分享</title>
	<atom:link href="https://www.mudbest.com/tag/%E6%97%B6%E9%97%B4%E6%A0%BC%E5%BC%8F/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.mudbest.com</link>
	<description>行影不离,忘之却步.</description>
	<lastBuildDate>Mon, 01 Oct 2012 12:13:56 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.1</generator>
	<item>
		<title>PHP时间格式函数</title>
		<link>https://www.mudbest.com/%e6%97%b6%e9%97%b4%e6%a0%bc%e5%bc%8f%e5%87%bd%e6%95%b0/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 25 Mar 2011 03:15:15 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[时间戳]]></category>
		<category><![CDATA[时间格式]]></category>
		<guid isPermaLink="false">http://www.mudbest.com/?p=513</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">
/**
 * 时间格式函数
 * by hkshadow
 * Enter description here ...
 * @param  $type 1 年月日   2 年月日小时分钟秒        3 年月
 * @param  $val  mktime()
 */
function MkTimeToDate($type,$val){
	if ($type == '1'){
		$dtime = date(&quot;Y-m-d&quot;,$val);
	}else if ($type == '2'){
		$dtime = date(&quot;Y-m-d H:i:s&quot;,$val);
	}else if ($type == '3'){
		$dtime = date(&quot;Y-m&quot;,$val);
	}
	return $dtime;
}
</pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
