Nieuw lid |
|
<?
$day = 13; // Day of the countdown
$month = 5; // Month of the countdown
$year = 2002; // Year of the countdown
// mktime is the marked time, and time() is the current time.
$target = mktime(0,0,0,$month,$day,$year);
$diff = $target - time();
$days = ($diff - ($diff % 86400)) / 86400;
$diff = $diff - ($days * 86400);
$hours = ($diff - ($diff % 3600)) / 3600;
$diff = $diff - ($hours * 3600);
$minutes = ($diff - ($diff % 60)) / 60;
$diff = $diff - ($minutes * 60);
$seconds = ($diff - ($diff % 1)) / 1;
echo"Only ".$days." day's, ".$hours." hours, ".$minutes." minuts and
".$seconds." until a thing";
?>
<? $day = 13; // Day of the countdown $month = 5; // Month of the countdown $year = 2002; // Year of the countdown // mktime is the marked time, and time() is the current time. $target = mktime(0,0,0,$month,$day,$year); $diff = $target - time(); $days = ($diff - ($diff % 86400)) / 86400; $diff = $diff - ($days * 86400); $hours = ($diff - ($diff % 3600)) / 3600; $diff = $diff - ($hours * 3600); $minutes = ($diff - ($diff % 60)) / 60; $diff = $diff - ($minutes * 60); $seconds = ($diff - ($diff % 1)) / 1; echo"Only ".$days." day's, ".$hours." hours, ".$minutes." minuts and ".$seconds." until a thing"; ?>
|