说明
This is the procedural version of DateTime::__construct().
Unlike the DateTime constructor, it will return
false
instead of an exception if the passed in
datetime
string is invalid.
参数
返回值
Returns a new DateTime instance 或者在失败时返回 false
参见
- DateTimeImmutable::__construct() - Returns new DateTimeImmutable object
- DateTimeImmutable::createFromFormat() - Parses a time string according to a specified format
- DateTime::__construct() - 返回新的 DateTime 对象
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。