<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: WoW Combat Log Splitter</title>
	<atom:link href="http://project-2501.net/index.php/2009/09/wow-combat-log-splitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://project-2501.net/index.php/2009/09/wow-combat-log-splitter/</link>
	<description>The net is vast and infinite.</description>
	<lastBuildDate>Thu, 15 Dec 2011 18:14:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Cryoclasm</title>
		<link>http://project-2501.net/index.php/2009/09/wow-combat-log-splitter/comment-page-1/#comment-37789</link>
		<dc:creator>Cryoclasm</dc:creator>
		<pubDate>Tue, 09 Aug 2011 10:41:47 +0000</pubDate>
		<guid isPermaLink="false">http://project-2501.net/?p=199#comment-37789</guid>
		<description>Your program also has a bug: it sometimes misses gaps longer than a day. I have a fixed version if you&#039;re interested.</description>
		<content:encoded><![CDATA[<p>Your program also has a bug: it sometimes misses gaps longer than a day. I have a fixed version if you&#8217;re interested.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cryoclasm</title>
		<link>http://project-2501.net/index.php/2009/09/wow-combat-log-splitter/comment-page-1/#comment-37786</link>
		<dc:creator>Cryoclasm</dc:creator>
		<pubDate>Tue, 09 Aug 2011 08:51:57 +0000</pubDate>
		<guid isPermaLink="false">http://project-2501.net/?p=199#comment-37786</guid>
		<description>Here&#039;s an improved version of the timestamp function that eliminates the hard-coded year 2009. It should work properly as long as the clock hasn&#039;t been set back since the start of the last log (may be an issue for speed-kill runs when DST ends) and the oldest log entry is less than a year old.

    def parse_timestamp(self, line):
        # m/d hh:mm:ss.msec
        # 6/6 21:04:29.435
        regex = r&quot;^(\d+)/(\d+) (\d+):(\d+):(\d+).(\d+) &quot;
       
        matches = re.search(regex, line)
       
        if matches == None:
            return None
       
        now   = datetime.datetime.now()

        timestamp = datetime.datetime(now.year,
                                      int(matches.group(1)),
                                      int(matches.group(2)),
                                      int(matches.group(3)),
                                      int(matches.group(4)),
                                      int(matches.group(5)),
                                      int(matches.group(6))*1000);

        if timestamp &gt; now: # this log is from last year
            timestamp.year -= 1

        return timestamp</description>
		<content:encoded><![CDATA[<p>Here&#8217;s an improved version of the timestamp function that eliminates the hard-coded year 2009. It should work properly as long as the clock hasn&#8217;t been set back since the start of the last log (may be an issue for speed-kill runs when DST ends) and the oldest log entry is less than a year old.</p>
<p>    def parse_timestamp(self, line):<br />
        # m/d hh:mm:ss.msec<br />
        # 6/6 21:04:29.435<br />
        regex = r&#8221;^(\d+)/(\d+) (\d+):(\d+):(\d+).(\d+) &#8221;</p>
<p>        matches = re.search(regex, line)</p>
<p>        if matches == None:<br />
            return None</p>
<p>        now   = datetime.datetime.now()</p>
<p>        timestamp = datetime.datetime(now.year,<br />
                                      int(matches.group(1)),<br />
                                      int(matches.group(2)),<br />
                                      int(matches.group(3)),<br />
                                      int(matches.group(4)),<br />
                                      int(matches.group(5)),<br />
                                      int(matches.group(6))*1000);</p>
<p>        if timestamp &gt; now: # this log is from last year<br />
            timestamp.year -= 1</p>
<p>        return timestamp</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk (Requested URI is rejected)
Database Caching 1/6 queries in 0.004 seconds using disk
Object Caching 288/292 objects using disk

Served from: project-2501.net @ 2012-02-07 22:46:01 -->
