isAfterOrEqual
isAfterOrEqual compares two date-times and returns true if the first parameter is equal to or later than the second parameter.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| instant1 | Instant | The first date-time for the comparison. |
| instant2 | Instant | The second date-time for the comparison. |
| dateTime1 | ZonedDateTime | The first date-time for the comparison. |
| dateTime2 | dateTime2 | The second date-time for the comparison. |
Returns
Returns a boolean value:
trueif the first date-time comes after the second date-time, or if the date-times are equal.falseotherwise.
Example
The following example shows how to use isAfterOrEqual to compare three Instants.