<?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>Hontai &#187; date</title>
	<atom:link href="http://www.hontai.es/tag/date/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hontai.es</link>
	<description>Hontai? no sería mejor hentai(manga guarro)?</description>
	<lastBuildDate>Sun, 09 May 2010 19:34:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Sumar fecha en AS2</title>
		<link>http://www.hontai.es/2009/12/sumar-fecha-en-as2/</link>
		<comments>http://www.hontai.es/2009/12/sumar-fecha-en-as2/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 10:22:51 +0000</pubDate>
		<dc:creator>n0ldor</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[date]]></category>

		<guid isPermaLink="false">http://www.hontai.es/?p=371</guid>
		<description><![CDATA[En AS2 una cosa que es bastante sencilla de hacer y que sin embargo me ha costado un rato encontrar el como, es sumarle a una fecha un día. Para ello utilizamos la función Date, y se haría de la siguiente manera:
PLAIN TEXT
Actionscript:




var today_date:Date = new Date&#40;&#41;;


today_date.setDate&#40;today_date.getDate&#40;&#41; + 1&#41;; 






Como se puede comprobar es muy [...]]]></description>
			<content:encoded><![CDATA[<p>En <a href="http://www.hontai.es/tag/as2/">AS2</a> una cosa que es bastante sencilla de hacer y que sin embargo me ha costado un rato encontrar el como, es sumarle a una fecha un día. Para ello utilizamos la función Date, y se haría de la siguiente manera:</p>
<div class="igBar"><span id="lactionscript-2"><a href="#" onclick="javascript:showPlainTxt('actionscript-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-2">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> today_date:<span style="color: #0066CC;">Date</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Date</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">today_date.<span style="color: #0066CC;">setDate</span><span style="color: #66cc66;">&#40;</span>today_date.<span style="color: #0066CC;">getDate</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> + <span style="color: #cc66cc;color:#800000;">1</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Como se puede comprobar es muy sencillo, pero buscando por Internet la verdad es que no encontré ninguna página o foro en el que lo pusieran, normalmente me encontré con funciones enormes en las que comprobaban el mes, el numero de día,…</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hontai.es/2009/12/sumar-fecha-en-as2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
