TemporalZ

compare

Compares two PlainYearMonth instances by their ISO date values. Returns -1, 0, or 1 if the first is before, equal, or after the second.

See: Temporal.PlainYearMonth.compare

Parameters

#
a:PlainYearMonth
PlainYearMonth
b:PlainYearMonth
PlainYearMonth

Source

Implementation

#
pub fn compare(a: PlainYearMonth, b: PlainYearMonth) i8 {
    return abi.c.temporal_rs_PlainYearMonth_compare(a._inner, b._inner);
}