Function

Birbtime_zone_set

unstable since: 0.7

Declaration [src]

gboolean
birb_time_zone_set (
  GTimeZone** timezone_ptr,
  GTimeZone* new_timezone
)

Description [src]

Updates timezone_ptr to point to new_timezone.

If timezone_ptr had a previous reference, it will be un-referenced.

If new_timezone is not NULL, a new reference will be added when it is assigned to timezone_ptr.

timezone_ptr can not be NULL but may point to a NULL value.

Available since: 0.7

Parameters

timezone_ptr

Type: GTimeZone

A pointer to a GTimeZone reference.

The argument will be modified by the function.
The caller of the function takes ownership of the returned data, and is responsible for freeing it.
new_timezone

Type: GTimeZone

The new time zone to set.

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: gboolean

TRUE if the value of timezone_ptr changed, otherwise FALSE.