php - 使用strtotime日期到20世纪70年代

kri*_*a89 1 php date strtotime

我试图在monday给定的日期使用下一个,strttotime但我从Jan 1970输出中获取日期.下面是我为下一个星期一的获取日期编写的代码行,我从这里得到了这段代码.谁能帮助我理解为什么会这样.提前致谢.

码:

$date_init = date('Y m d', strtotime('next monday', strtotime('2016 06 22')));
Run Code Online (Sandbox Code Playgroud)

预期产出:

2016 06 27
Run Code Online (Sandbox Code Playgroud)

实际产量:

1970 01 05
Run Code Online (Sandbox Code Playgroud)

Emi*_*mil 5

2016 06 22根据手册,该字符串不是有效的日期格式.尝试添加连字符:

$date_init = date('Y m d', strtotime('next monday', strtotime('2016-06-22')));
Run Code Online (Sandbox Code Playgroud)

您可以在此处找到所有有效的日期格式:http://php.net/manual/en/datetime.formats.date.php