envzn
0.8 · beta · not released

Library / Date and time / Date and time / TimeComparison

ENUM

TimeComparison

Three-way comparison result for DateTime->compareTo. Co-exists with Comparable[DateTime]'s isLessThan / equals — both surfaces are intentional per the constitution §28.5 reservation. Comparable derives the ordering operators (<, <=, >, >=); compareTo names the result for callers that want the explicit enum.

Cases 3

CaseDescription
BEFORE—
EQUAL—
AFTER—