GoLang DateTimeImmutable::__construct

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



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

PHP DateTimeImmutable::__construct

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

DateTimeImmutable::__construct

date_create_immutable

(PHP 5 >= 5.5.0, PHP 7)

DateTimeImmutable::__construct -- date_create_immutableReturns new DateTimeImmutable object

Description

Object oriented style

public DateTimeImmutable::__construct ([ string $time = "now" [, DateTimeZone $timezone = NULL ]] )

Procedural style

DateTimeImmutable date_create_immutable ([ string $time = "now" [, DateTimeZone $timezone = NULL ]] )

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