Method

GLibDateTimeequal

since: 2.26

Declaration [src]

gboolean
g_date_time_equal (
  gconstpointer dt1,
  gconstpointer dt2
)

Description [src]

Checks to see if dt1 and dt2 are equal.

Equal here means that they represent the same moment after converting them to the same time zone.

If you need to check that the date-times are in the same time zone as well as referring to the same instant in time, additionally compare the values returned by g_time_zone_get_offset() for the time zones for the two date-times.

Available since: 2.26

Parameters

dt2

Type: GDateTime

A GDateTime.

Return value

Type: gboolean

TRUE if dt1 and dt2 are equal.