Function

GLibTimeZonenew_offset

Declaration

GTimeZone*
g_time_zone_new_offset (
  gint32 seconds
)

Description

Creates a GTimeZone corresponding to the given constant offset from UTC, in seconds.

This is equivalent to calling g_time_zone_new() with a string in the form [+|-]hh[:mm[:ss]].

Available since:2.58

Parameters

seconds gint32
 

Offset to UTC, in seconds.

Return value

Returns: GTimeZone
 

A timezone at the given offset from UTC.

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