DateTimeImmutable::createFromFormat
DateTimeImmutable::createFromFormat
date_create_immutable_from_format
(PHP 5 >= 5.5.0, PHP 7)
DateTimeImmutable :: createFromFormat - date_create_immutable_from_format - 根据指定的格式解析时间字符串
描述
面向对象的风格
public static DateTimeImmutable DateTimeImmutable::createFromFormat ( string $format , string $time [, DateTimeZone $timezone ] )
程序风格
DateTimeImmutable date_create_immutable_from_format ( string $format , string $time [, DateTimeZone $timezone ] )
像DateTime :: createFromFormat(),但与DateTimeImmutable一起使用。
← DateTimeImmutable::__construct
DateTimeImmutable::createFromMutable →