Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?
countdiff($year,$month,$day,$hour,$minute);
function countdiff($y, $mo, $d, $h, $m)
{
$cdate = mktime($h, $m, 0, $mo, $d, $y, -1);
$today = time();
$difference = $cdate - $today;
if ($difference < 0) { $difference = 0; }
$dleft = floor($difference/60/60/24);
$hleft = floor(($difference - $dleft*60*60*24)/60/60);
$mleft = floor(($difference - $dleft*60*60*24 - $hleft*60*60)/60);
$countdowndate = date("F j, Y, g:i a",$cdate);
echo "<b>$dleft days</b>, <b>$hleft hours</b> and <b>$mleft minutes</b> left until <b>$countdowndate</b>";
}
?>