operator >= method
Compares two LocalDateTime values to see if the left one is later than or equal to the right one.
Only values with the same calendar system can be compared. See the top-level type documentation for more information about comparisons.
- this: First operand of the comparison
other
: Second operand of the comparison
Returns: true if the this is later than or equal to other
, false otherwise.
- ArgumentError: The calendar system of
other
is not the same as the calendar of this.
Implementation
bool operator >=(LocalDateTime other) {
// todo: what variable should these checkArgument's give?
Preconditions.checkArgument(calendar == other.calendar, 'rhs', "Only values in the same calendar can be compared");
return compareTo(other) >= 0;
}