Jump to content

Home

3 More Months Till Swg!!!


Dr. Zaius

Recommended Posts

It's PHP, so the server you're running this on must have PHP running.

 

  	<?

  	$releasetime = strtotime("April 15 2003");
  	$curtime = time();

  	$timeuntil = $releasetime - $curtime;
  	$days = floor($timeuntil / 60 / 60 / 24);

  	$timeuntil = $timeuntil - ($days * 60 * 60 * 24);
  	$hours = floor($timeuntil / 60 / 60);

  	if($hours>0) {
	if($hours!=1) {
   		echo "<b>$days</b> days and <b>$hours</b> hours until release (April 15th, 2003)  ";
	} else {
   		echo "<b>$days</b> days and <b>$hours</b> hour until release (April 15th, 2003)  ";
	}
  	} else {
  		echo "<b>$days</b> days until release (April 15th, 2003)  ";
  	}

  	?>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...