Method

GLibDateTimedifference

since: 2.26

Declaration

GTimeSpan
g_date_time_difference (
  GDateTime* end,
  GDateTime* begin
)

Description

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).

Available since: 2.26

Parameters

begin

Type: GDateTime

A GDateTime.

The data is owned by the caller of the function.

Return value

Type: GTimeSpan

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