This function has no parameters.
Returns the Unix timestamp representing the date.
Exceptions and Errors
If the timestamp cannot be represented as int, a ValueError is thrown. Prior to PHP 8.0.0, false was returned in this case. Still, the timestamp can be retrieved as string by using DateTimeInterface::format with the U format.
|These functions no longer return false on failure.