<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
	<channel>
		<title>The Decimal Date</title>
		<link>https://blogs.lotterypost.com/jadelottery/2015/6/the-decimal-date.htm</link>
		<atom:link href="https://www.lotterypost.com/rss/blogcomments/102300" rel="self" type="application/rss+xml" />
		<description>JADELottery's Blog: The Decimal Date</description>
		<dc:language>en-us</dc:language>
		<generator>Lottery Post RSS Generator</generator>
		<item>
			<title>Original Blog Entry: The Decimal Date</title>
			<link>https://blogs.lotterypost.com/jadelottery/2015/6/the-decimal-date.htm</link>
			<guid isPermaLink="true">https://blogs.lotterypost.com/jadelottery/2015/6/the-decimal-date.htm</guid>
			<pubDate>Mon, 08 Jun 2015 16:41:55 GMT</pubDate>
			<dc:creator>JADELottery</dc:creator>
			<description><![CDATA[<p>Basic Code<br /><br />____________________________________________________________________________________________________<br /><br />Function DateDecimal(ByVal Year, ByVal Month, ByVal Day) As Double<br /><br />Dim a, b, c, n, Leap(2, 12) As Integer<br /><br />a = 0: b = 0: c = 0: n = 0<br /><br />Leap(0, 0) = 365: Leap(1, 0) = 366<br /><br />Leap(0, 1) = 0: Leap(1, 1) = 0<br /><br />Leap(0, 2) = 31: Leap(1, 2) = 31<br /><br />Leap(0, 3) = 59: Leap(1, 3) = 60<br /><br />Leap(0, 4) = 90: Leap(1, 4) = 91<br /><br />Leap(0, 5) = 120: Leap(1, 5) = 121<br /><br />Leap(0, 6) = 151: Leap(1, 6) = 152<br /><br />Leap(0, 7) = 181: Leap(1, 7) = 182<br /><br />Leap(0, 8) = 212: Leap(1, 8) = 213<br /><br />Leap(0, 9) = 243: Leap(1, 9) = 244<br /><br />Leap(0, 10) = 273: Leap(1, 10) = 274<br /><br />Leap(0, 11) = 304: Leap(1, 11) = 305<br /><br />Leap(0, 12) = 334: Leap(1, 12) = 335<br /><br />If (Modulus(Year, 4) = 0) Then a = 1<br /><br />If (Modulus(Year, 100) = 0) Then b = 1<br /><br />If (Modulus(Year, 400) = 0) Then c = 1<br /><br />n = a * b * c - a * b + a &#x27;derived from the boolean math of n = (1 - ((1 - a) + (a * b * (1 - c))))<br /><br />DateDecimal = Year + ((Leap(n, Month) + Day - 1) / Leap(n, 0))<br /><br />End Function<br /><br />Function Modulus(ByVal a As Double, ByVal b As Double) As Long<br /><br />Modulus = a - b * Int(a / b)<br /><br />End Function<br /><br />____________________________________________________________________________________________________<br /><br />... &#x5b;&#xa0;<a href="https://blogs.lotterypost.com/jadelottery/2015/6/the-decimal-date.htm">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>Blog Entry</category>
			<category>JADELottery</category>
			<wfw:comment>https://www.lotterypost.com/blogentry/102300</wfw:comment>
		</item>
	</channel>
</rss>

