PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

DateTimeImmutable::__construct

date_create_immutable

(PHP 5 >= 5.5.0)

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.

PHP Manual