2
我有一个奇怪的行为与下面的代码:的strtotime时间问题与特定的日期
echo strftime('%B %G', strtotime('2017-01-01')) . ' - weird..';
echo '<br>';
echo strftime('%B %G', strtotime('2017-01-02')) . ' - all good!';
结果:
January 2016 - weird..
January 2017 - all good!
我不知道为什么日期2017-01- 01给我这个错误的结果。 我预计明显有2017年1月。
任何见解?
真棒! 现在它变得更有意义。谢谢! –