GLib.DateTime.difference

### Method

# GLib DateTimedifference

since: 2.26

#### Declaration [src]

    GTimeSpan
    g_date_time_difference (
      GDateTime* end,
      GDateTime* begin
    )

#### Description [src]

Calculates the difference in time between `end` and `begin`.

The time span that is returned is effectively `end` - `begin` (positive if the first parameter is larger).

This effectively converts both date-times to the same time zone before calculating the difference.

Available since: 2.26

#### Parameters

`begin`

  Type: `GDateTime`

  Another date-time.

  The data is owned by the caller of the method.

#### Return value

Type: `GTimeSpan`

The difference between the two date-times, as a time span expressed in microseconds.