DateTimeImmutable::__construct
DateTimeImmutable::__construct
date_create_immutable
(PHP 5 >= 5.5.0, PHP 7)
DateTimeImmutable :: __构造 - date_create_immutable - 返回新的DateTimeImmutable对象
描述
面向对象的风格
public DateTimeImmutable::
_
_
construct
([ string $time
= "now" [, DateTimeZone $timezone
= NULL
]] )
程序风格
DateTimeImmutable date_create_immutable ([ string $time = "now" [, DateTimeZone $timezone = NULL ]] )
像DateTime :: __ construct(),但与DateTimeImmutable一起使用。
← DateTimeImmutable::add
DateTimeImmutable::createFromFormat →