Struct

GLibTimeZone

Description

struct GTimeZone {
  /* No available fields */
}

GTimeZone is an opaque structure whose members cannot be accessed directly.

Available since:2.26

Constructors

g_time_zone_new

A version of g_time_zone_new_identifier() which returns the UTC time zone if identifier could not be parsed or loaded.

Available since: 2.26

Deprecated since: 2.68

g_time_zone_new_identifier

Creates a GTimeZone corresponding to identifier. If identifier cannot be parsed or loaded, NULL is returned.

Available since: 2.68

g_time_zone_new_local

Creates a GTimeZone corresponding to local time. The local time zone may change between invocations to this function; for example, if the system administrator changes it.

Available since: 2.26

g_time_zone_new_offset

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

Available since: 2.58

g_time_zone_new_utc

Creates a GTimeZone corresponding to UTC.

Available since: 2.26

Instance methods

g_time_zone_adjust_time

Finds an interval within tz that corresponds to the given time_, possibly adjusting time_ if required to fit into an interval. The meaning of time_ depends on type.

Available since: 2.26

g_time_zone_find_interval

Finds an interval within tz that corresponds to the given time_. The meaning of time_ depends on type.

Available since: 2.26

g_time_zone_get_abbreviation

Determines the time zone abbreviation to be used during a particular interval of time in the time zone tz.

Available since: 2.26

g_time_zone_get_identifier

Get the identifier of this GTimeZone, as passed to g_time_zone_new(). If the identifier passed at construction time was not recognised, UTC will be returned. If it was NULL, the identifier of the local timezone at construction time will be returned.

Available since: 2.58

g_time_zone_get_offset

Determines the offset to UTC in effect during a particular interval of time in the time zone tz.

Available since: 2.26

g_time_zone_is_dst

Determines if daylight savings time is in effect during a particular interval of time in the time zone tz.

Available since: 2.26

g_time_zone_ref

Increases the reference count on tz.

Available since: 2.26

g_time_zone_unref

Decreases the reference count on tz.

Available since: 2.26