试试下面的代码:
<?php
echo date('Y-m-d H:m:s', strtotime('today'));我的期望是:
2014-10-08 00:00:00但结果是:
2014-10-08 00:10:00为什么和如何得到期待的一个?
发布于 2014-10-08 09:46:45
echo date('Y-m-d H:m:s', strtotime('today'));
^
|
months
echo date('Y-m-d H:i:s', strtotime('today'));
^
|
minutes发布于 2014-11-03 01:16:29
echo date('Y-m-d 00:00:00', strtotime('today'));https://stackoverflow.com/questions/26253807
复制相似问题