GoLang DateTimeImmutable::createFromFormat

request it (348)
GoLang replacement for PHP's DateTimeImmutable::createFromFormat [edit | history]



Do you know a GoLang replacement for PHP's DateTimeImmutable::createFromFormat? Write it!

PHP DateTimeImmutable::createFromFormat

PHP original manual for DateTimeImmutable::createFromFormat [ show | php.net ]

DateTimeImmutable::createFromFormat

date_create_immutable_from_format

(PHP 5 >= 5.5.0, PHP 7)

DateTimeImmutable::createFromFormat -- date_create_immutable_from_formatParses a time string according to a specified format

Description

Object oriented style

public static DateTimeImmutable DateTimeImmutable::createFromFormat ( string $format , string $time [, DateTimeZone $timezone ] )

Procedural style

DateTimeImmutable date_create_immutable_from_format ( string $format , string $time [, DateTimeZone $timezone ] )

Like DateTime::createFromFormat() but works with DateTimeImmutable.