Function

GLibTimeZonenew_utc

Declaration

GTimeZone*
g_time_zone_new_utc (
  void
)

Description

Creates a GTimeZone corresponding to UTC.

This is equivalent to calling g_time_zone_new() with a value like “Z”, “UTC”, “+00”, etc.

You should release the return value by calling g_time_zone_unref() when you are done with it.

Available since:2.26

Return value

Returns: GTimeZone
 

The universal timezone.

 The caller of the function takes ownership of the data, and is responsible for freeing it.