<?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>Onn Raves &#187; python</title>
	<atom:link href="http://www.onnraves.com/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.onnraves.com</link>
	<description>an Oracle consultant raves about P2ES, Python, Wordpress, photography and other things that he does on his Dell in Asia</description>
	<lastBuildDate>Tue, 03 Jan 2012 08:28:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Date formatting in Python &#8211; use strftime, like Oracle&#039;s to_char</title>
		<link>http://www.onnraves.com/2009/02/04/date-formatting-in-python-use-strftime-like-oracles-to_char/</link>
		<comments>http://www.onnraves.com/2009/02/04/date-formatting-in-python-use-strftime-like-oracles-to_char/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 08:43:30 +0000</pubDate>
		<dc:creator>Siew Kam Onn</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[wow]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[formatting]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://onnraves.com/2009/02/04/date-formatting-in-python-use-strftime-like-oracles-to_char/</guid>
		<description><![CDATA[time — Time access and conversions — Python v2.6.1 documentation time.strftime(format[, t])¶ Convert a tuple or struct_time representing a time as returned by gmtime() or localtime() to a string as specified by the format argument. If t is not provided, the current time as returned by localtime() is used. format must be a string. ValueError &#8230; <a href="http://www.onnraves.com/2009/02/04/date-formatting-in-python-use-strftime-like-oracles-to_char/" class="more-link" >read on <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://docs.python.org/library/time.html" target="_blank">time — Time access and conversions — Python v2.6.1 documentation</a></p>
<blockquote><p>time.strftime(format[, t])¶</p>
<p>Convert a tuple or struct_time representing a time as returned by gmtime() or localtime() to a string as specified by the format argument. If t is not provided, the current time as returned by localtime() is used. format must be a string. ValueError is raised if any field in t is outside of the allowed range.</p>
<p>The strftime function is similar to Oracle SQL&#8217;s to_char function to display a date in various formats.<br />
You will however need to be familiar with <a href="http://docs.python.org/library/time.html" target="_blank">directives</a>.</p>
<p>For example, to display a date in Oracle&#8217;s format (&#8216;dd-MON-yy&#8217;), the function is</p>
<p>assuming d is a datetime,<br />
d.strftime(&#8216;%d-%b-%y&#8217;).upper()</p></blockquote>
<div style="border: 1px solid; padding: 3px; background: white none repeat scroll 0% 0%; position: fixed; bottom: 0px; left: 0px; color: black; font-family: sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; cursor: pointer; opacity: 0.4;">Cookie</div>
]]></content:encoded>
			<wfw:commentRss>http://www.onnraves.com/2009/02/04/date-formatting-in-python-use-strftime-like-oracles-to_char/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

