<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Are you really 18 years old today?</title>
	<link>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html</link>
	<description>Oracle Certified Master</description>
	<pubDate>Fri, 05 Sep 2008 16:26:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: HunterX</title>
		<link>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6129</link>
		<pubDate>Wed, 26 Mar 2008 08:22:29 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6129</guid>
					<description>:-) :-) :-)</description>
		<content:encoded><![CDATA[<p>:-) <img src='http://laurentschneider.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  <img src='http://laurentschneider.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Laurent Schneider</title>
		<link>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6060</link>
		<pubDate>Tue, 04 Mar 2008 12:14:26 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6060</guid>
					<description>of course my comment is not very accurate... I mean if you are born 29-feb-1992 you will not be 18 on feb-28-2010 but one day later</description>
		<content:encoded><![CDATA[<p>of course my comment is not very accurate&#8230; I mean if you are born 29-feb-1992 you will not be 18 on feb-28-2010 but one day later
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Laurent Schneider</title>
		<link>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6049</link>
		<pubDate>Fri, 29 Feb 2008 13:07:27 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6049</guid>
					<description>not sure if you can enter the party when born 29-FEB-1991 next year before 1st march... depends on the bodyguard :-)</description>
		<content:encoded><![CDATA[<p>not sure if you can enter the party when born 29-FEB-1991 next year before 1st march&#8230; depends on the bodyguard <img src='http://laurentschneider.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: HunterX</title>
		<link>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6048</link>
		<pubDate>Fri, 29 Feb 2008 10:11:03 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6048</guid>
					<description>OK! 
I can watch adult movie or drink Gin-tonic.

create function add_mon (date1 IN DATE,add_mon IN NUMBER) return DATE IS loc_date2 date;

BEGIN
loc_date2:= ADD_MONTHS(date1-1,add_mon);

IF LAST_DAY(date1) = date1
THEN
IF LAST_DAY(loc_date2)=loc_date2
THEN
RETURN loc_date2;
ELSE
RETURN loc_date2 +1;
END IF;
ELSE
RETURN ADD_MONTHS(date1,add_mon);
END IF;

END;
/

SQL&#62; l
1 declare
2 a date;
3 begin
4 a := add_mon (to_date('1990-02-28','YYYY-MM-DD'),18*12);
5 dbms_output.put_line(a);
6* end;
SQL&#62; /
28-FEB-08</description>
		<content:encoded><![CDATA[<p>OK!<br />
I can watch adult movie or drink Gin-tonic.</p>
<p>create function add_mon (date1 IN DATE,add_mon IN NUMBER) return DATE IS loc_date2 date;</p>
<p>BEGIN<br />
loc_date2:= ADD_MONTHS(date1-1,add_mon);</p>
<p>IF LAST_DAY(date1) = date1<br />
THEN<br />
IF LAST_DAY(loc_date2)=loc_date2<br />
THEN<br />
RETURN loc_date2;<br />
ELSE<br />
RETURN loc_date2 +1;<br />
END IF;<br />
ELSE<br />
RETURN ADD_MONTHS(date1,add_mon);<br />
END IF;</p>
<p>END;<br />
/</p>
<p>SQL&gt; l<br />
1 declare<br />
2 a date;<br />
3 begin<br />
4 a := add_mon (to_date(&#8217;1990-02-28&#8242;,&#8217;YYYY-MM-DD&#8217;),18*12);<br />
5 dbms_output.put_line(a);<br />
6* end;<br />
SQL&gt; /<br />
28-FEB-08
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Anonymous</title>
		<link>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6047</link>
		<pubDate>Fri, 29 Feb 2008 09:11:44 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6047</guid>
					<description>If I was born Feb 28, 1990. Today is my birth day for 18 years old.



ADD_MONTH
---------
27-FEB-08

SQL&#62;  select add_months(date '1990-02-28',18*12) from dual;

ADD_MONTH
---------
29-FEB-08</description>
		<content:encoded><![CDATA[<p>If I was born Feb 28, 1990. Today is my birth day for 18 years old.</p>
<p>ADD_MONTH<br />
&#8212;&#8212;&#8212;<br />
27-FEB-08</p>
<p>SQL&gt;  select add_months(date &#8216;1990-02-28&#8242;,18*12) from dual;</p>
<p>ADD_MONTH<br />
&#8212;&#8212;&#8212;<br />
29-FEB-08
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Laurent Schneider</title>
		<link>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6040</link>
		<pubDate>Thu, 28 Feb 2008 18:37:45 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6040</guid>
					<description>nothing unexpected if you read the doc before using add_months :D</description>
		<content:encoded><![CDATA[<p>nothing unexpected if you read the doc before using add_months <img src='http://laurentschneider.com/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: radino</title>
		<link>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6039</link>
		<pubDate>Thu, 28 Feb 2008 18:31:43 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6039</guid>
					<description>nothing unexpected..

doc:
If date is the last day of the month or if the resulting month has fewer days than the day component of date, then the result is the last day of the resulting month.</description>
		<content:encoded><![CDATA[<p>nothing unexpected..</p>
<p>doc:<br />
If date is the last day of the month or if the resulting month has fewer days than the day component of date, then the result is the last day of the resulting month.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Laurent Schneider</title>
		<link>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6038</link>
		<pubDate>Thu, 28 Feb 2008 17:19:15 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6038</guid>
					<description>Hi Claudia,
No, I did not know the Pirates of Penzance.  
I have an uncle who is celebrating his 18th birthday tomorrow...  since his father reached its 101st I would not be surprised he will reach 21st.
:)
Laurent</description>
		<content:encoded><![CDATA[<p>Hi Claudia,<br />
No, I did not know the Pirates of Penzance.<br />
I have an uncle who is celebrating his 18th birthday tomorrow&#8230;  since his father reached its 101st I would not be surprised he will reach 21st.<br />
:)<br />
Laurent
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Claudia Zeiler</title>
		<link>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6037</link>
		<pubDate>Thu, 28 Feb 2008 17:11:12 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/02/are-you-really-18-years-old-today.html#comment-6037</guid>
					<description>Hi Laurent,
The person born Feb 29, 1992 acquires the day the the one born Feb 28, 1990 lost.

  1* select add_months(date '1992-02-29',18*12) from dual
SQL&#62; /

ADD_MONTH
---------
28-FEB-10


By the way, do you know "The Pirates of Penzance"?  The whole plot turns around the hero who was indentured to pirates until his 21st birthday.  BUT he was born Feb 29.  No one ever claimed that Gilbert and Sullivan make sense. :-))
-Claudia</description>
		<content:encoded><![CDATA[<p>Hi Laurent,<br />
The person born Feb 29, 1992 acquires the day the the one born Feb 28, 1990 lost.</p>
<p>  1* select add_months(date &#8216;1992-02-29&#8242;,18*12) from dual<br />
SQL&gt; /</p>
<p>ADD_MONTH<br />
&#8212;&#8212;&#8212;<br />
28-FEB-10</p>
<p>By the way, do you know &#8220;The Pirates of Penzance&#8221;?  The whole plot turns around the hero who was indentured to pirates until his 21st birthday.  BUT he was born Feb 29.  No one ever claimed that Gilbert and Sullivan make sense. <img src='http://laurentschneider.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> )<br />
-Claudia
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
