View Single Post
  #8   Spotlight this post!  
Unread 26-10-2014, 21:59
Team118Joseph's Avatar
Team118Joseph Team118Joseph is offline
The guy that did the lighting
AKA: Joseph Foster
FRC #0118 (Robonauts)
Team Role: Alumni
 
Join Date: Jan 2014
Rookie Year: 2013
Location: League City
Posts: 61
Team118Joseph will become famous soon enoughTeam118Joseph will become famous soon enough
Re: New Countdown To Kickoff 2015 Website

I decided to use the milliseconds and convert it over with this code

Code:
                var d = new Date();
		var time_until = (kickoff_date - d.getTime());
		var days = Math.floor(time_until/86400000);
		time_until = time_until%86400000
		var hours = Math.floor(time_until/3600000);
		time_until = time_until%3600000
		var minutes = Math.floor(time_until/60000);
		time_until = Math.floor(time_until%60000);
		var seconds = Math.floor(time_until/1000);
		var milliseconds = Math.floor(time_until%1000);
Reply With Quote