<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:media="http://search.yahoo.com/mrss/"
	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>时间 - 四号程序员</title>
	<atom:link href="https://www.coder4.com/archives/tag/%E6%97%B6%E9%97%B4/feed" rel="self" type="application/rss+xml" />
	<link>https://www.coder4.com</link>
	<description>Keep It Simple and Stupid</description>
	<lastBuildDate>Fri, 13 Mar 2015 12:26:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>Python日期时间转换</title>
		<link>https://www.coder4.com/archives/4004</link>
					<comments>https://www.coder4.com/archives/4004#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Thu, 24 Oct 2013 09:19:33 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[日期]]></category>
		<category><![CDATA[时间]]></category>
		<category><![CDATA[转换]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=4004</guid>

					<description><![CDATA[# 将20130622000000 转化为unix时间戳 def conv_time(str_time_long): return int(time.mktime(time.strptime(str_time_long, &#34;%Y%m%d%H%M%S&#34;))) 格式互转，需要使用datetime模块： datetime.strptime(string, format)：将日期字符串string，根据format，转化为datetime对象（六元数组）。 &#038;g[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/4004/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Python中时间戳与时间字符串互相转化</title>
		<link>https://www.coder4.com/archives/2239</link>
					<comments>https://www.coder4.com/archives/2239#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Wed, 28 Sep 2011 02:33:33 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[时间]]></category>
		<category><![CDATA[时间戳]]></category>
		<category><![CDATA[转化]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=2239</guid>

					<description><![CDATA[#设a为字符串 import time a = "2011-09-28 10:00:00" #中间过程，一般都需要将字符串转化为时间数组 time.strptime(a,'%Y-%m-%d %H:%M:%S') &#62;&#62;time.struct_time(tm_year=2011, tm_mon=9, tm_mday=27, tm_hour=10, tm_min=50, tm_sec=0, tm_wday=1, tm_yday=270, tm_isdst=-1) #将"[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/2239/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
