equal


Description:

public bool equal (DateTime dt)

Checks to see if this 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 [method@GLib.TimeZone.get_offset] for the time zones for the two date-times.

Parameters:

this

a DateTime

dt2

a DateTime

Returns:

true if this and dt2 are equal