DateTime.difference

Calculates the difference in time between @end and @begin. The #GTimeSpan that is returned is effectively @end - @begin (ie: positive if the first parameter is larger).

class DateTime
difference

Parameters

begin DateTime

a #GDateTime

Return Value

Type: GTimeSpan

the difference between the two #GDateTime, as a time span expressed in microseconds.

Meta

Since

2.26