date
date(format,timestamp)
strtotime
strtotime(time,now)
time()
获取当前Unix 时间戳包含 Unix 纪元(1970 年 1 月 1 日 00:00:00 GMT)与指定时间之间的秒数。
mktime
mktime(hour,minute,second,month,day,year)
Example
<?php
$now=time();
$hd_end=strtotime('2017-3-31 00:00:00');
$time_str=date('Y-m-d H:i:s',$hd_end);
洞洞