(PHP 5 >= 5.5.0, PHP 7, PHP 8)
date_create_immutable — create a new DateTimeImmutable object
$datetime
= "now", ?DateTimeZone $timezone
= null
): DateTimeImmutable|falseThis is the procedural version of DateTimeImmutable::__construct().
Unlike the DateTimeImmutable constructor, it will return
false
instead of an exception if the passed in
datetime
string is invalid.
Returns a new DateTimeImmutable instance or false
on failure
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