php date() 输出24小时制时间的方法 echo date(“Y-m-d H:i:s “); #2017-05-21 13:14:17 输出12小时制时间的方法 echo date(“Y-m-d h:i:s a”); #2017-05-21 01:14:17 pm