Example of the Countdown to the Chinese New Year in 2014

  • 2020-12-19 20:57:36
  • OfStack

The countdown to the Spring Festival in 2014

<?php
$zero1=strtotime (date( " y-m-d h:i:s " )); // The current time 
$zero2=strtotime ( " 2014-1-31 24:00:00 ' );  // Chinese New Year time 
$guonian=ceil(($zero2-$zero1)/86400); //60s*60min*24h
echo  "It's still New Year's Day <strong>$guonian</strong> Day!" ;
?>

Related articles: