Quantcast
Channel: Сообщество PHP DevelStudio - среда разработки программ
Viewing all articles
Browse latest Browse all 6336

Обратный отсчет

$
0
0
Автор здесь
Вот переделал под себя:
PHP код:

$date '2014-09-01 09:00:00';
$check_time = (strtotime($date) - time());
if(
$check_time <= 0){
  return 
false;
}

$days floor($check_time/86400);
$hours floor(($check_time%86400)/3600);
$minutes floor(($check_time%3600)/60);
$seconds $check_time%60;
c("label2")->caption "$days дн.$hours час.$minutes мин.$seconds сек."

Но время показывает не правильно!На 6 часов больше показывает.

Viewing all articles
Browse latest Browse all 6336


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>