<?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>gnucom.cc &#187; time &amp; dates</title>
	<atom:link href="http://blog.gnucom.cc/tag/time-dates/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gnucom.cc</link>
	<description>Code snippets and more...</description>
	<lastBuildDate>Wed, 18 Jan 2012 23:50:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Calculate file age in Python.</title>
		<link>http://blog.gnucom.cc/2010/calculate-file-age-in-python/</link>
		<comments>http://blog.gnucom.cc/2010/calculate-file-age-in-python/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 01:15:38 +0000</pubDate>
		<dc:creator>sholsapp</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[time & dates]]></category>

		<guid isPermaLink="false">http://blog.gnucom.cc/?p=726</guid>
		<description><![CDATA[I use a file&#8217;s age for many things, especially when it comes to monitoring servers with nagios. Every language has their own modules to do these things, so here is my quick example to calculate a file&#8217;s age with Python. import os from datetime import datetime stat = os.stat&#40;'/etc/php.ini'&#41; fileage = datetime.fromtimestamp&#40;stat.st_mtime&#41; now = datetime.now&#40;&#41; [...]]]></description>
		<wfw:commentRss>http://blog.gnucom.cc/2010/calculate-file-age-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

