compare

fun compare(dt2: DateTime): <Error class: unknown class>(source)

A comparison function for #GDateTimes that is suitable as a #GCompareFunc. Both #GDateTimes must be non-null.

Return

-1, 0 or 1 if @dt1 is less than, equal to or greater than @dt2.

Since

2.26

Parameters

dt2

second #GDateTime to compare