<?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>Chad Sturtz &#187; Java</title>
	<atom:link href="http://chadsturtz.com/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://chadsturtz.com</link>
	<description>A Journey Through Software</description>
	<lastBuildDate>Wed, 04 May 2011 15:45:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Joda Time: Find the amount of time between two dates</title>
		<link>http://chadsturtz.com/2010/03/joda-time-find-the-amount-of-time-between-two-dates/</link>
		<comments>http://chadsturtz.com/2010/03/joda-time-find-the-amount-of-time-between-two-dates/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 21:37:30 +0000</pubDate>
		<dc:creator>Chad</dc:creator>
				<category><![CDATA[Groovy]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://chadsturtz.com/?p=75</guid>
		<description><![CDATA[A Joda Time example for finding the difference in time between two dates.]]></description>
			<content:encoded><![CDATA[<p><a href="http://today.java.net/pub/a/today/2008/09/18/jsr-310-new-java-date-time-api.html">Joda Time</a> is a Date/Time API proposed for Java SE 7.  Below, I have a Groovy script that uses the 1.6 Joda Time library to find the difference between two dates.</p>
<pre>
 import org.joda.time.*
    ...
 def i = new Interval(startDate.getTime(),endDate.getTime())
 def p = i.toPeriod()

 println "Time Difference: " + p.getSeconds() + "." + p.getMillis() + " Seconds"</pre>
<p><br/><br />
In addition to Seconds and Milliseconds, you can get the number of Days, Hours, Minutes, Months, Weeks, and Years.</p>
]]></content:encoded>
			<wfw:commentRss>http://chadsturtz.com/2010/03/joda-time-find-the-amount-of-time-between-two-dates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

