DateTime.compare

int compare(glib.date_time.DateTime dt2)

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

Parameters

dt2second #GDateTime to compare

Returns

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

than dt2.