(PHP 5 >= 5.5.0, PHP 7, PHP 8)
date_create_immutable — 新しい DateTimeImmutable オブジェクトを作成する
$datetime
= "now", ?DateTimeZone $timezone
= null
): DateTimeImmutable|falseこれは DateTimeImmutable::__construct() の手続き型バージョンです。
DateTimeImmutable のコンストラクタと異なり、
datetime
が不正な文字列だった場合には
例外をスローする代わりに false
を返します。
DateTimeImmutable::__construct を参照ください。
新しい DateTimeImmutable のインスタンスを返します。失敗した場合に false
を返します
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant