<?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>Comentarios en: Cuenta regresiva en Javascript</title>
	<atom:link href="http://www.daosorio.com/cuenta-regresiva-en-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daosorio.com/cuenta-regresiva-en-javascript/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=cuenta-regresiva-en-javascript</link>
	<description>Breves notas de mi vida, gustos y pasatiempos...</description>
	<lastBuildDate>Fri, 10 Sep 2010 02:35:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Por: Ivan</title>
		<link>http://www.daosorio.com/cuenta-regresiva-en-javascript/comment-page-1/#comment-1130</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Wed, 13 Jan 2010 19:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.daosorio.net/cuenta-regresiva-en-javascript/#comment-1130</guid>
		<description>function getTime() {
now = new Date();
y2k = new Date(&quot;Feb 03 2010 00:00:00&quot;);
days = (y2k - now) / 1000 / 60 / 60 / 24;
daysRound = Math.floor(days);
hours = (y2k - now) / 1000 / 60 / 60 - (24 * daysRound);
hoursRound = Math.floor(hours);
minutes = (y2k - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound);
minutesRound = Math.floor(minutes);
seconds = (y2k - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound);
secondsRound = Math.round(seconds);

sec = (secondsRound == 1) ? &quot; second&quot; : &quot; seconds&quot;;
min = (minutesRound == 1) ? &quot; minute&quot; : &quot; minutes, &quot;;
hr = (hoursRound == 1) ? &quot; hour&quot; : &quot; hours, &quot;;
dy = (daysRound == 1)  ? &quot; day&quot; : &quot; days, &quot;

document.timeForm.input1.value = daysRound + &quot; : &quot; + hoursRound + &quot; : &quot; + minutesRound + &quot; : &quot; + secondsRound;
newtime = window.setTimeout(&quot;getTime();&quot;, 1000);
}


y solo cambias la fecha y mandas llamar a getTime();</description>
		<content:encoded><![CDATA[<p>function getTime() {<br />
now = new Date();<br />
y2k = new Date(&#8220;Feb 03 2010 00:00:00&#8243;);<br />
days = (y2k &#8211; now) / 1000 / 60 / 60 / 24;<br />
daysRound = Math.floor(days);<br />
hours = (y2k &#8211; now) / 1000 / 60 / 60 &#8211; (24 * daysRound);<br />
hoursRound = Math.floor(hours);<br />
minutes = (y2k &#8211; now) / 1000 /60 &#8211; (24 * 60 * daysRound) &#8211; (60 * hoursRound);<br />
minutesRound = Math.floor(minutes);<br />
seconds = (y2k &#8211; now) / 1000 &#8211; (24 * 60 * 60 * daysRound) &#8211; (60 * 60 * hoursRound) &#8211; (60 * minutesRound);<br />
secondsRound = Math.round(seconds);</p>
<p>sec = (secondsRound == 1) ? &#8221; second&#8221; : &#8221; seconds&#8221;;<br />
min = (minutesRound == 1) ? &#8221; minute&#8221; : &#8221; minutes, &#8220;;<br />
hr = (hoursRound == 1) ? &#8221; hour&#8221; : &#8221; hours, &#8220;;<br />
dy = (daysRound == 1)  ? &#8221; day&#8221; : &#8221; days, &#8221;</p>
<p>document.timeForm.input1.value = daysRound + &#8221; : &#8221; + hoursRound + &#8221; : &#8221; + minutesRound + &#8221; : &#8221; + secondsRound;<br />
newtime = window.setTimeout(&#8220;getTime();&#8221;, 1000);<br />
}</p>
<p>y solo cambias la fecha y mandas llamar a getTime();</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: dentras</title>
		<link>http://www.daosorio.com/cuenta-regresiva-en-javascript/comment-page-1/#comment-171</link>
		<dc:creator>dentras</dc:creator>
		<pubDate>Sun, 18 May 2008 23:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.daosorio.net/cuenta-regresiva-en-javascript/#comment-171</guid>
		<description>Hola no puedes conseguir un contador regresivo pero que lo pueda configurar yo.

Ejemplo:

Que falten ##(días) ##(horas) ##(minutos) ##(segundos) para que xxxxxxxx termine o comience algo</description>
		<content:encoded><![CDATA[<p>Hola no puedes conseguir un contador regresivo pero que lo pueda configurar yo.</p>
<p>Ejemplo:</p>
<p>Que falten ##(días) ##(horas) ##(minutos) ##(segundos) para que xxxxxxxx termine o comience algo</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: www.daosorio.com @ 2010-09-10 03:24:22 -->