谁能解释为什么 strtotime('cast') returns 一个值?
Can anyone explain why strtotime('cast') returns a value?
不是真正的问题(尽管它与我们的 if() 语句冲突),但是当您输入 strtotime('cast') 时,它 returns 一个默认为的实际值今天的日期。
我只是想知道是否有人知道 cast 这个词在时间函数方面的意义
谢谢!
它映射到 timezone offset for "Australia/Adelaide"。
示例:
echo date('Y-m-d H:i:s'), "\n",
date('Y-m-d H:i:s', strtotime("cast")), "\n",
date('Y-m-d H:i:s', strtotime("Australia/Adelaide"));
打印:
2016-08-25 10:48:44
2016-08-25 01:18:44
2016-08-25 01:18:44
不是真正的问题(尽管它与我们的 if() 语句冲突),但是当您输入 strtotime('cast') 时,它 returns 一个默认为的实际值今天的日期。
我只是想知道是否有人知道 cast 这个词在时间函数方面的意义
谢谢!
它映射到 timezone offset for "Australia/Adelaide"。
示例:
echo date('Y-m-d H:i:s'), "\n",
date('Y-m-d H:i:s', strtotime("cast")), "\n",
date('Y-m-d H:i:s', strtotime("Australia/Adelaide"));
打印:
2016-08-25 10:48:44
2016-08-25 01:18:44
2016-08-25 01:18:44