$date->isMax()
Checks if the object's datetime is at or before the given datetime
$date->isMax(DateTimeInterface|string|int $datetime = 'now', DateTimeZone|null $timezone = null): bool
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $datetime | DateTimeInterfaceorstringorint |
'now'
|
|
| $timezone | DateTimeZoneornull |
null
|
Optional default timezone if $datetime is string |
Return type
bool
This method modifies the existing $date object it is applied to and returns it again.