今天,也就是10月31号,执行一下代码:
echo date('Ym', strtotime("-1 month"));
返回的结果是201410,是不是说明类似strtotime("-1 month")
是不可信的?
定义了时区。
php -v
PHP 5.4.33-1~dotdeb.0 (cli) (built: Sep 19 2014 12:00:21)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies