Documentation for sub infix:«<=>» assembled from the following pages:

Class: DateTime §

From DateTime

(DateTime) sub infix:«<=>» §

multi sub infix:«<=>»(DateTime:D \aDateTime:D \b --> Order:D)

Compares the equivalent instant, returns the Order.

say DateTime.now <=> DateTime.now# OUTPUT: «Less␤»