Method

GLibDatecompare

Declaration

gint
g_date_compare (
  const GDate* lhs,
  const GDate* rhs
)

Description

Qsort()-style comparison function for dates. Both dates must be valid.

Parameters

rhs GDate
 

Second date to compare.

 The data is owned by the caller of the function.

Return value

Returns: int
 

0 for equal, less than zero if lhs is less than rhs, greater than zero if lhs is greater than rhs.