<?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"
	>
<channel>
	<title>Comments on: Date time paradox</title>
	<atom:link href="http://blogs.planetingres.org/notnull/2007/08/02/date-time-paradox/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.planetingres.org/notnull/2007/08/02/date-time-paradox/</link>
	<description>Just another blogs.planetingres.org weblog</description>
	<pubDate>Thu, 28 Aug 2008 02:02:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: seanb</title>
		<link>http://blogs.planetingres.org/notnull/2007/08/02/date-time-paradox/#comment-96</link>
		<dc:creator>seanb</dc:creator>
		<pubDate>Tue, 30 Oct 2007 13:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.planetingres.org/notnull/2007/08/02/date-time-paradox/#comment-96</guid>
		<description>"I have a date x. and I wish to know the date 10 month befor this x i.e. e.d. if it is 1st nov 2007 then 10 months before would be 1st feb 2007."

Surely you would just use date arithmetic?  The date you would get 10 months before 1-Nov is 1-Jan.

select date('1-nov-07') - '10 months' ==&#62; '1-jan-07'
select date('29-dec-07') - '10 months' ==&#62; '28-feb-07'
select date('29-dec-08') - '10 months' ==&#62; '29-feb-08'</description>
		<content:encoded><![CDATA[<p>&#8220;I have a date x. and I wish to know the date 10 month befor this x i.e. e.d. if it is 1st nov 2007 then 10 months before would be 1st feb 2007.&#8221;</p>
<p>Surely you would just use date arithmetic?  The date you would get 10 months before 1-Nov is 1-Jan.</p>
<p>select date(&#8217;1-nov-07&#8242;) - &#8216;10 months&#8217; ==&gt; &#8216;1-jan-07&#8242;<br />
select date(&#8217;29-dec-07&#8242;) - &#8216;10 months&#8217; ==&gt; &#8216;28-feb-07&#8242;<br />
select date(&#8217;29-dec-08&#8242;) - &#8216;10 months&#8217; ==&gt; &#8216;29-feb-08&#8242;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: notnull</title>
		<link>http://blogs.planetingres.org/notnull/2007/08/02/date-time-paradox/#comment-16</link>
		<dc:creator>notnull</dc:creator>
		<pubDate>Fri, 21 Sep 2007 07:00:10 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.planetingres.org/notnull/2007/08/02/date-time-paradox/#comment-16</guid>
		<description>From the description it is the number of days between the two dates that are required for the calculation.  When using intervals in calculations Ingres assumes the following:Converts a date interval into a floating-point constant expressed in the unit of measurement specified by unit. The interval function assumes that there are 30.436875 days per month and 365.2425 days per year when using the mos, qtrs, and yrs specifications.

Using a month interval for calculations subtracts the number of months from the month component of the date leaving the day to be the same unless the day of the month doesn't exist.

Trying this with ANSI dates and intervals provides the same behaviour.

I've discussed this with John and we think that we're limited by Ingres date/time behaviour but we'll think about it some more.</description>
		<content:encoded><![CDATA[<p>From the description it is the number of days between the two dates that are required for the calculation.  When using intervals in calculations Ingres assumes the following:Converts a date interval into a floating-point constant expressed in the unit of measurement specified by unit. The interval function assumes that there are 30.436875 days per month and 365.2425 days per year when using the mos, qtrs, and yrs specifications.</p>
<p>Using a month interval for calculations subtracts the number of months from the month component of the date leaving the day to be the same unless the day of the month doesn&#8217;t exist.</p>
<p>Trying this with ANSI dates and intervals provides the same behaviour.</p>
<p>I&#8217;ve discussed this with John and we think that we&#8217;re limited by Ingres date/time behaviour but we&#8217;ll think about it some more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mrs Raghavan</title>
		<link>http://blogs.planetingres.org/notnull/2007/08/02/date-time-paradox/#comment-15</link>
		<dc:creator>Mrs Raghavan</dc:creator>
		<pubDate>Tue, 11 Sep 2007 14:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.planetingres.org/notnull/2007/08/02/date-time-paradox/#comment-15</guid>
		<description>Hi,
I happen to discuss with John Smedly regarding a date concept. I will post it here too. It goes like this: I have a date x.  and I wish to know the date 10 month befor this x i.e. e.d. if it is 1st nov 2007 then 10 months before would be 1st feb 2007. This is calculations are needed for some calculations. here various options are when Feb with 28 days or 29 days comes in between or a the calender year changes etc. I do not know how to cater to this without much diffuculty. Till now we are havong a number of if's and else's in the .osq

Looking forward to hearing from you

thanks</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I happen to discuss with John Smedly regarding a date concept. I will post it here too. It goes like this: I have a date x.  and I wish to know the date 10 month befor this x i.e. e.d. if it is 1st nov 2007 then 10 months before would be 1st feb 2007. This is calculations are needed for some calculations. here various options are when Feb with 28 days or 29 days comes in between or a the calender year changes etc. I do not know how to cater to this without much diffuculty. Till now we are havong a number of if&#8217;s and else&#8217;s in the .osq</p>
<p>Looking forward to hearing from you</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ingres Technology Blog &#187; Blog Archive &#187; ANSI Date Type in latest Ingres Release</title>
		<link>http://blogs.planetingres.org/notnull/2007/08/02/date-time-paradox/#comment-14</link>
		<dc:creator>Ingres Technology Blog &#187; Blog Archive &#187; ANSI Date Type in latest Ingres Release</dc:creator>
		<pubDate>Sat, 08 Sep 2007 18:35:40 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.planetingres.org/notnull/2007/08/02/date-time-paradox/#comment-14</guid>
		<description>[...] can definitely search our docs to get all the info you need, but I also found this nice hands on blog entry. Ingres Database  Popularity: unranked [?]Share [...]</description>
		<content:encoded><![CDATA[<p>[...] can definitely search our docs to get all the info you need, but I also found this nice hands on blog entry. Ingres Database  Popularity: unranked [?]Share [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
