<?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: Happy New Year! 2009</title>
	<atom:link href="http://www.stjohnjohnson.com/blog/happy-new-year-2009/feed" rel="self" type="application/rss+xml" />
	<link>http://www.stjohnjohnson.com/blog/happy-new-year-2009</link>
	<description>This is a place for me to post my ideas, projects, tutorials, and resume for all to see</description>
	<lastBuildDate>Fri, 29 Apr 2011 06:09:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mark Kobulnick</title>
		<link>http://www.stjohnjohnson.com/blog/happy-new-year-2009/comment-page-1#comment-2742</link>
		<dc:creator>Mark Kobulnick</dc:creator>
		<pubDate>Mon, 12 Jul 2010 17:31:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.stjohnjohnson.com/?p=258#comment-2742</guid>
		<description>By the way, I changed the code to 

Numbervar Difference := datediff(&quot;yyyy&quot;, d1, d2)

Much more efficient.</description>
		<content:encoded><![CDATA[<p>By the way, I changed the code to </p>
<p>Numbervar Difference := datediff(&#8220;yyyy&#8221;, d1, d2)</p>
<p>Much more efficient.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Kobulnick</title>
		<link>http://www.stjohnjohnson.com/blog/happy-new-year-2009/comment-page-1#comment-2740</link>
		<dc:creator>Mark Kobulnick</dc:creator>
		<pubDate>Mon, 12 Jul 2010 13:45:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.stjohnjohnson.com/?p=258#comment-2740</guid>
		<description>Leap years are a pain. I had to write a Crystal Report when I started this job. As per our contract, we are entitled to &quot;Bonus Vacation Days&quot; based on years of service. For my &quot;Years of Service&quot; formula I used 365.25 as my denominator. One day the Payroll dept contacts me with a discrepancy. One employee received 1 less day of bonus vacation time. When I expanded the result to 4 decimal places, the years of service came to 19.9971. When I changed my denominator to 365.20, the years of service came out to 20.0000. Here&#039;s the formula:

dateTimeVar d1 := {EMPLOYEE.ADJ_HIRE_DATE};

dateTimeVar d2 := {?EndPayPeriod};

NumberVar d3 := 0.0;

Numbervar Difference := datediff(&quot;d&quot;, d1, d2 );

d3 := (Difference/365.20000);</description>
		<content:encoded><![CDATA[<p>Leap years are a pain. I had to write a Crystal Report when I started this job. As per our contract, we are entitled to &#8220;Bonus Vacation Days&#8221; based on years of service. For my &#8220;Years of Service&#8221; formula I used 365.25 as my denominator. One day the Payroll dept contacts me with a discrepancy. One employee received 1 less day of bonus vacation time. When I expanded the result to 4 decimal places, the years of service came to 19.9971. When I changed my denominator to 365.20, the years of service came out to 20.0000. Here&#8217;s the formula:</p>
<p>dateTimeVar d1 := {EMPLOYEE.ADJ_HIRE_DATE};</p>
<p>dateTimeVar d2 := {?EndPayPeriod};</p>
<p>NumberVar d3 := 0.0;</p>
<p>Numbervar Difference := datediff(&#8220;d&#8221;, d1, d2 );</p>
<p>d3 := (Difference/365.20000);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
