The DateTimeImmutable and related classes allow you represent date/time information. The objects can be created by passing in a string presentation of date/time information, or from the current system's time.
Platform | Url |
---|---|
PHP.net | https://www.php.net/manual/en/book.datetime |