<!DOCTYPE html>
<html>
<body>
<?php
date_default_timezone_set("Asia/Shanghai");//设置时区
echo "今天是".date("Y/m/d/l")."<br>";
echo date("Y")."<br>";
echo date("h:i:sa")."<br>";
$s=mktime(12,12,12,12,12,1994);//创建日期
echo date("Y-m-d h:i:sa",$s)."<br>";
$d1=strtotime("December 31");
$d2=ceil(($d1-time())/60/60/24);//返回>=的整数
echo $d2;
?>
</body>
</html>