9 days, 1 hour, 4 minutes and 00 seconds

SkyHog

Touchdown! Greaser!
Joined
Feb 23, 2005
Messages
18,510
Location
Middle of nowhere Texas
Display Name
Everything Offends Me
Home Airfield
KLUD
So - this will put on June 11, at noon mountain time.

What happens at exactly noon? Is that the official start? Is that Jesse's arrival time? Diana's arrival time?

:D
 
So - this will put on June 11, at noon mountain time.

What happens at exactly noon? Is that the official start? Is that Jesse's arrival time? Diana's arrival time?

:D
Or noon central -- or noon eastern --whatever your computer clock is set to :)

The exact time really has no meaning.
 
Or noon central -- or noon eastern --whatever your computer clock is set to :)

The exact time really has no meaning.

Ahh yes, I should have taken the time to look
Code:
dateFuture = new Date(2009,5,11,12,00,00);
 
// TESTING: comment out the line below to print out the "dateFuture" for testing purposes
//document.write(dateFuture +"<br />");
 
 
//###################################
//nothing beyond this point
function GetCount(){
 
	dateNow = new Date();									//grab current date
	amount = dateFuture.getTime() - dateNow.getTime();		//calc milliseconds between dates
	delete dateNow;
 
	// time is already past
	if(amount < 0){
		document.getElementById('countbox').innerHTML="Now!";
	}
	// date is still good
	else{
		days=0;hours=0;mins=0;secs=0;out="";
 
		amount = Math.floor(amount/1000);//kill the "milliseconds" so just secs
 
		days=Math.floor(amount/86400);//days
		amount=amount%86400;
 
		hours=Math.floor(amount/3600);//hours
		amount=amount%3600;
 
		mins=Math.floor(amount/60);//minutes
		amount=amount%60;
 
		secs=Math.floor(amount);//seconds
 
		if(days != 0){out += days +" day"+((days!=1)?"s":"")+", ";}
		if(days != 0 || hours != 0){out += hours +" hour"+((hours!=1)?"s":"")+", ";}
		if(days != 0 || hours != 0 || mins != 0){out += mins +" minute"+((mins!=1)?"s":"")+", ";}
		out += secs +" seconds";
		document.getElementById('countbox').innerHTML=out;
 
		setTimeout("GetCount()", 1000);
	}
}
 
window.onload=GetCount;//call when everything has loaded
 
//-->
</script>
<div id="countbox"></div>
remaining until Gastons!
</div>
 
Awww, come on now Jesse, there's gotta be something cooler than this that can happen:
attachment.php
 

Attachments

  • now.JPG
    now.JPG
    5.9 KB · Views: 168
Awww, come on now Jesse, there's gotta be something cooler than this that can happen:
attachment.php

Bah Nick -- You're just assuming too much. It will change, but I have that code, server side...that way..losers like you that try to predict the future by looking at the client-side code won't know :)
 
Actually, i just realized what I did isn't going to work..so it's just going to say the lame now thing..as I don't have time and must fly to gastons :)
 
Actually, i just realized what I did isn't going to work..so it's just going to say the lame now thing..as I don't have time and must fly to gastons :)

I love what you finally came up with:

banner said:
Get off the computer and come to Gastons. Yes, even you, Mike.
 
If Mike had come to Gaston's Jesse wouldn't have had a cabin.
 
If Mike had come to Gaston's Jesse wouldn't have had a cabin.

Yes, he would have. He would have taken one of the other 10 cabins that became available in the final days before the fly-in. :yes:
 
Back
Top