DateTime.compare

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

class DateTime
int
compare

Parameters

dt2 glib.date_time.DateTime

second #GDateTime to compare

Return Value

Type: int

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