phpday 2027 - Call for Papers

date_create

(PHP 5 >= 5.2.0, PHP 7, PHP 8)

date_create — Yeni bir DateTime nesnesi oluşturur

Açıklama

function date_create(string $zaman = "now", ?DateTimeZone $zaman_dilimi = null): DateTime|false

DateTime::__construct() için yordamsal sürüm.

DateTime kurucusundan farklı olarak, belirtilen zaman dizgesi geçersiz ise bir istisna yerine false döndürür.

Bağımsız Değişkenler

Bkz: DateTimeImmutable::__construct.

Dönen Değerler

Başarı durumunda yeni bir DateTime örneği, başarısızlık durumunda false döner.

Ayrıca Bakınız

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top