Nintendo E3 website, sort of

ToxBox

Power Star
http://e3.nintendo.com/

It is small website and can someone set up countdown to E3 2011?
 

YamiHoshi

Nintendo 3DS Developer
Here's a nice little countdown I made in 5 minutes:
Code:
<?php
// Define your target date here
    $targetYear   = 2011;
    $targetMonth  = 6;
    $targetDay    = 7;
    $targetHour   = 9;
    $targetMinute = 0;
    $targetSecond = 0;
// End target date definition

$targetDate = mktime($targetHour,$targetMinute,$targetSecond,$targetMonth,$targetDay,$targetYear);
$actualDate = time();

$secondsDiff = $targetDate - $actualDate;

$remainingDay     = floor($secondsDiff/60/60/24);
$remainingHour    = floor(($secondsDiff-($remainingDay*60*60*24))/60/60);
$remainingMinutes = floor(($secondsDiff-($remainingDay*60*60*24)-($remainingHour*60*60))/60);
$remainingSeconds = floor(($secondsDiff-($remainingDay*60*60*24)-($remainingHour*60*60))-($remainingMinutes*60));

// Define date format
$dateFormat = "Y-m-d H:i:s";

$targetDateDisplay = date($dateFormat,$targetDate);
$actualDateDisplay = date($dateFormat,$actualDate);

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<body>
 TARGET DATE : <?php echo $targetDateDisplay; ?>


 ACTUAL DATE : <?php echo $actualDateDisplay; ?>


 REMAINING   : <?php echo "$remainingDay days, $remainingHour hours, $remainingMinutes minutes, $remainingSeconds seconds";?>
</body>   
</html>
Just put it on your PHP Hosting, and this is how it looks like:
http://www.cw-server.eu/nine3timer.php

Refresh required, as it's in pure PHP code, not JavaScript.
 
Top