[Showmatch] Clash of the Titans - Page 41
| Forum Index > StarCraft 2 Tournaments |
|
TrainFX
United States469 Posts
| ||
|
zYwi3c
Poland1811 Posts
| ||
|
Karthane
United States1183 Posts
| ||
|
DoWork
United States33 Posts
| ||
|
Elefanto
Switzerland3584 Posts
| ||
|
TimeSpiral
United States1010 Posts
+ Show Spoiler + function countdown(){ //Getting dates in Unix Time, and finding the difference between the current time, and expiration date. Dividing the UTC time by 1000 to get the Unix Time expire = parseInt(Date.parse("Feb 21, 2011 2:00 PM")/1000); //End Date var now = new Date(); var current = parseInt(now.getTime()/1000); var diff_seconds = expire - current; //Number of years left var diff_years = parseInt(diff_seconds/(60*60*24*365)) diff_seconds -= diff_years * 60 * 60 * 24 * 365; document.getElementById("years").innerHTML=diff_years; //Number of days left var diff_days = parseInt(diff_seconds/(60*60*24)); diff_seconds -= diff_days * 60 * 60 * 24; document.getElementById("days").innerHTML=diff_days; //Number of hours left var diff_hours = parseInt(diff_seconds/(60*60)); diff_seconds -= diff_hours * 60 * 60; document.getElementById("hours").innerHTML=diff_hours; //Number of minutes left var diff_minutes = parseInt(diff_seconds/(60)); diff_seconds -= diff_minutes * 60; document.getElementById("minutes").innerHTML=diff_minutes; //Number of seconds left document.getElementById("seconds").innerHTML=diff_seconds; //Set intervals of countdown timer setTimeout("countdown();", 1000); } There is no adjustment method for various timezones! I'm just bustin' your balls ... that would make the countdown function MUCH more complicated. Ha. Just thought some people would find the code you used interesting ;P | ||
|
Xadar
497 Posts
![]() | ||
|
CursedFeanor
Canada539 Posts
Can't wait!!! | ||
|
Sc2ttyl
United States245 Posts
| ||
|
hypno_toad
United States156 Posts
| ||
|
EdSlyB
Portugal1621 Posts
Gogo Graken! | ||
|
Cofo
United States1388 Posts
-20 seconds left! | ||
|
Thallis
United States314 Posts
| ||
|
HarryHood
United States105 Posts
| ||
|
CherubDown
United States171 Posts
| ||
|
Shiladie
Canada1631 Posts
| ||
|
DueSs
United States765 Posts
![]() Patience. lol. | ||
|
niTsEn
Germany86 Posts
| ||
|
MGHova
Canada274 Posts
On February 22 2011 04:04 Thallis wrote: Wait... If g4 is covering this stream... is there a chance they televise the tournament? No, G4TV will be streaming the event on their site. They have done this before with another sc2 events. Not sure which one, i can't remember. | ||
|
idonthinksobro
3138 Posts
On February 22 2011 04:11 DueSs wrote: ![]() Patience. lol. mine says -6 hours O.o | ||
| ||

![[image loading]](http://oi56.tinypic.com/2u9hoac.jpg)