<?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>Comments on: jQuery Countdown Script</title>
	<atom:link href="http://www.littlewebthings.com/2010/02/jquery-countdown-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.littlewebthings.com/2010/02/jquery-countdown-script/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 23 Feb 2011 14:40:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Math Deuka</title>
		<link>http://www.littlewebthings.com/2010/02/jquery-countdown-script/comment-page-2/#comment-470</link>
		<dc:creator>Math Deuka</dc:creator>
		<pubDate>Wed, 23 Feb 2011 14:40:32 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1#comment-470</guid>
		<description>@luger

Here&#039;s my setup:

[code]

    $(document).ready(function (){
      $(&#039;#countdown&#039;).countDown({
        targetDate: {
          &#039;day&#039;:    1,
          &#039;month&#039;:  12,
          &#039;year&#039;:   2012,
          &#039;hour&#039;:   23,
          &#039;min&#039;:    0,
          &#039;sec&#039;:    0,
          &#039;utc&#039;:    true
        },
        &#039;omitWeeks&#039;: true,
        &#039;serverStartTime&#039; : 
      });
    });
     
[/code]

The  part was missing in my published comment. It got lost somewhere when submitting the comment.

Hope it helps.

--
Math</description>
		<content:encoded><![CDATA[<p>@luger</p>
<p>Here&#8217;s my setup:</p>
<p>[code]</p>
<p>    $(document).ready(function (){<br />
      $('#countdown').countDown({<br />
        targetDate: {<br />
          'day':    1,<br />
          'month':  12,<br />
          'year':   2012,<br />
          'hour':   23,<br />
          'min':    0,<br />
          'sec':    0,<br />
          'utc':    true<br />
        },<br />
        'omitWeeks': true,<br />
        'serverStartTime' :<br />
      });<br />
    });</p>
<p>[/code]</p>
<p>The  part was missing in my published comment. It got lost somewhere when submitting the comment.</p>
<p>Hope it helps.</p>
<p>&#8211;<br />
Math</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adailton</title>
		<link>http://www.littlewebthings.com/2010/02/jquery-countdown-script/comment-page-2/#comment-437</link>
		<dc:creator>Adailton</dc:creator>
		<pubDate>Mon, 24 Jan 2011 13:30:47 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1#comment-437</guid>
		<description>Hello
First congratulations for the script, very functional!

Doubt, how would he show the days to hours? Type: 2 days 48 hours show. - 3 days 72 hours show ..

Thanks</description>
		<content:encoded><![CDATA[<p>Hello<br />
First congratulations for the script, very functional!</p>
<p>Doubt, how would he show the days to hours? Type: 2 days 48 hours show. &#8211; 3 days 72 hours show ..</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KRodgers</title>
		<link>http://www.littlewebthings.com/2010/02/jquery-countdown-script/comment-page-2/#comment-436</link>
		<dc:creator>KRodgers</dc:creator>
		<pubDate>Mon, 24 Jan 2011 12:17:37 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1#comment-436</guid>
		<description>@Admin, thank you for this, it looks and works really well.

@ Defsound, it depends which option you use. If you use targetDate then it is using the users PC clock and calender to count down to a time and date and will be different for each user, if you use targetOffset then you can choose the period of time to count down to. If you want everyone to see the same countdown amount then you should use the latter.

I wrote the following in php to calculate the difference between a now and a future date and to submit the calculated difference to the targetOffset function. I hope its useful to someone.

[code]
&lt;?php
function time_difference($endtime){
	//converting from a unix time stamp 
	//we deduct 1 day, 1 month and 1970 years as this is when unix time is counted from
	$days= (date(&quot;j&quot;,$endtime)-1);
	$months =(date(&quot;n&quot;,$endtime)-1);
	$years =(date(&quot;Y&quot;,$endtime)-1970);
	$hours =date(&quot;G&quot;,$endtime);
	$mins =date(&quot;i&quot;,$endtime);
	$secs =date(&quot;s&quot;,$endtime);
	$difference=&quot;&#039;day&#039;: &quot;.$days.&quot;,&#039;month&#039;: &quot;.$months.&quot;,&#039;year&#039;: &quot;.$years.&quot;,&#039;hour&#039;: &quot;.$hours.&quot;,&#039;min&#039;: &quot;.$mins.&quot;,&#039;sec&#039;: &quot;.$secs;
	return $difference;
}
// $future_date should be a unix timestamp
$future_date = 1420113600; // 1st Jan 2015 12:00:00 (noon)
$endtime = $future_date - time(); //gives the number of seconds between now and the future date
$countdown = time_difference($endtime);

echo &quot;
jQuery(document).ready(function() {
	    $(&#039;#countdown_dashboard&#039;).countDown({
	        targetOffset: {&quot;,$countdown,&quot;
	        }
	    });
	});
&quot;;
?&gt;
[/code]</description>
		<content:encoded><![CDATA[<p>@Admin, thank you for this, it looks and works really well.</p>
<p>@ Defsound, it depends which option you use. If you use targetDate then it is using the users PC clock and calender to count down to a time and date and will be different for each user, if you use targetOffset then you can choose the period of time to count down to. If you want everyone to see the same countdown amount then you should use the latter.</p>
<p>I wrote the following in php to calculate the difference between a now and a future date and to submit the calculated difference to the targetOffset function. I hope its useful to someone.</p>
<p>[code]<br />
&lt;?php<br />
function time_difference($endtime){<br />
	//converting from a unix time stamp<br />
	//we deduct 1 day, 1 month and 1970 years as this is when unix time is counted from<br />
	$days= (date(&quot;j&quot;,$endtime)-1);<br />
	$months =(date(&quot;n&quot;,$endtime)-1);<br />
	$years =(date(&quot;Y&quot;,$endtime)-1970);<br />
	$hours =date(&quot;G&quot;,$endtime);<br />
	$mins =date(&quot;i&quot;,$endtime);<br />
	$secs =date(&quot;s&quot;,$endtime);<br />
	$difference=&quot;&#039;day&#039;: &quot;.$days.&quot;,&#039;month&#039;: &quot;.$months.&quot;,&#039;year&#039;: &quot;.$years.&quot;,&#039;hour&#039;: &quot;.$hours.&quot;,&#039;min&#039;: &quot;.$mins.&quot;,&#039;sec&#039;: &quot;.$secs;<br />
	return $difference;<br />
}<br />
// $future_date should be a unix timestamp<br />
$future_date = 1420113600; // 1st Jan 2015 12:00:00 (noon)<br />
$endtime = $future_date - time(); //gives the number of seconds between now and the future date<br />
$countdown = time_difference($endtime);</p>
<p>echo &quot;<br />
jQuery(document).ready(function() {<br />
	    $('#countdown_dashboard').countDown({<br />
	        targetOffset: {",$countdown,"<br />
	        }<br />
	    });<br />
	});<br />
";<br />
?&gt;<br />
[/code]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luger</title>
		<link>http://www.littlewebthings.com/2010/02/jquery-countdown-script/comment-page-2/#comment-435</link>
		<dc:creator>luger</dc:creator>
		<pubDate>Sun, 23 Jan 2011 01:28:58 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1#comment-435</guid>
		<description>@Math 

the code is great and it works like a charm. i have a question about the using server time. im not exactly clear on where to include the &quot;‘serverStartTime’ :&quot; option as mentioned in your comment. do i add it somewhere underneath targetDate, where day, month, etc. is? and what kind of value do i add next to it? do i add a number? how do i let it know, i want it to retrieve the server&#039;s time? any help would be appreciated and thanks for the hard work.</description>
		<content:encoded><![CDATA[<p>@Math </p>
<p>the code is great and it works like a charm. i have a question about the using server time. im not exactly clear on where to include the &#8220;‘serverStartTime’ :&#8221; option as mentioned in your comment. do i add it somewhere underneath targetDate, where day, month, etc. is? and what kind of value do i add next to it? do i add a number? how do i let it know, i want it to retrieve the server&#8217;s time? any help would be appreciated and thanks for the hard work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnnyB</title>
		<link>http://www.littlewebthings.com/2010/02/jquery-countdown-script/comment-page-2/#comment-432</link>
		<dc:creator>johnnyB</dc:creator>
		<pubDate>Thu, 20 Jan 2011 18:03:38 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1#comment-432</guid>
		<description>So I wanted to do the 3 digit days instead of weeks.  I downloaded the HTML Under Construction archive from the project site and simply added the date to countdown to and the omitWeeks variable, but when I add the omitWeeks = true it sets all the values to zero.  It works once I take out the omitWeeks variable but I don&#039;t see why. Here&#039;s the code that I have in the file downloaded from the project site

$(&#039;#countdown_dashboard&#039;).countDown({
		targetDate: {
			&#039;day&#039;: 	30,
			&#039;month&#039;: 	11,
			&#039;year&#039;: 	2011,
			&#039;hour&#039;: 	7,
			&#039;min&#039;: 	0,
			&#039;sec&#039;: 	0
			}
		omitWeeks: true
		});</description>
		<content:encoded><![CDATA[<p>So I wanted to do the 3 digit days instead of weeks.  I downloaded the HTML Under Construction archive from the project site and simply added the date to countdown to and the omitWeeks variable, but when I add the omitWeeks = true it sets all the values to zero.  It works once I take out the omitWeeks variable but I don&#8217;t see why. Here&#8217;s the code that I have in the file downloaded from the project site</p>
<p>$(&#8216;#countdown_dashboard&#8217;).countDown({<br />
		targetDate: {<br />
			&#8216;day&#8217;: 	30,<br />
			&#8216;month&#8217;: 	11,<br />
			&#8216;year&#8217;: 	2011,<br />
			&#8216;hour&#8217;: 	7,<br />
			&#8216;min&#8217;: 	0,<br />
			&#8216;sec&#8217;: 	0<br />
			}<br />
		omitWeeks: true<br />
		});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maruse</title>
		<link>http://www.littlewebthings.com/2010/02/jquery-countdown-script/comment-page-2/#comment-430</link>
		<dc:creator>Maruse</dc:creator>
		<pubDate>Wed, 19 Jan 2011 04:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1#comment-430</guid>
		<description>Is there a way to customize the slide down effect? I want to make it shorter.</description>
		<content:encoded><![CDATA[<p>Is there a way to customize the slide down effect? I want to make it shorter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mistik</title>
		<link>http://www.littlewebthings.com/2010/02/jquery-countdown-script/comment-page-2/#comment-424</link>
		<dc:creator>Mistik</dc:creator>
		<pubDate>Sat, 15 Jan 2011 22:11:56 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1#comment-424</guid>
		<description>Is it possible to inverse the script, no to create a count down but create a count &quot;up&quot; ... ;) 

Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Is it possible to inverse the script, no to create a count down but create a count &#8220;up&#8221; &#8230; <img src='http://www.littlewebthings.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
<p>Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jibe</title>
		<link>http://www.littlewebthings.com/2010/02/jquery-countdown-script/comment-page-2/#comment-423</link>
		<dc:creator>Jibe</dc:creator>
		<pubDate>Fri, 14 Jan 2011 08:49:28 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1#comment-423</guid>
		<description>It seems the onComplete event cannot be used in setCountDown function.

I have multiple countdowns and each of them should start the following.</description>
		<content:encoded><![CDATA[<p>It seems the onComplete event cannot be used in setCountDown function.</p>
<p>I have multiple countdowns and each of them should start the following.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge</title>
		<link>http://www.littlewebthings.com/2010/02/jquery-countdown-script/comment-page-2/#comment-422</link>
		<dc:creator>Jorge</dc:creator>
		<pubDate>Fri, 14 Jan 2011 00:46:55 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1#comment-422</guid>
		<description>Hi Bill!

How are you getting on?

I was just going to ask if it is possible to use a code that redirect to a URL as soon the countdown timer reaches zero?

Give me a hand, please.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Bill!</p>
<p>How are you getting on?</p>
<p>I was just going to ask if it is possible to use a code that redirect to a URL as soon the countdown timer reaches zero?</p>
<p>Give me a hand, please.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel</title>
		<link>http://www.littlewebthings.com/2010/02/jquery-countdown-script/comment-page-2/#comment-418</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Mon, 10 Jan 2011 10:07:57 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=1#comment-418</guid>
		<description>Hello,
who can i put more than 99 weeks? Thanks</description>
		<content:encoded><![CDATA[<p>Hello,<br />
who can i put more than 99 weeks? Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

