Table of Contents

Class TimeZone

Namespace
GLib.Internal
Assembly
GLib-2.0.dll
public class TimeZone
Inheritance
TimeZone
Inherited Members

Methods

AdjustTime(TimeZoneHandle, TimeType, ref long)

Calls native method g_time_zone_adjust_time. Version: 2.26

[Version("2.26")]
public static extern int AdjustTime(TimeZoneHandle tz, TimeType type, ref long time)

Parameters

tz TimeZoneHandle

Transfer ownership: None Nullable: False

type TimeType

Transfer ownership: None Nullable: False

time long

Transfer ownership: Full Nullable: False

Returns

int

Transfer ownership: None Nullable: False

FindInterval(TimeZoneHandle, TimeType, long)

Calls native method g_time_zone_find_interval. Version: 2.26

[Version("2.26")]
public static extern int FindInterval(TimeZoneHandle tz, TimeType type, long time)

Parameters

tz TimeZoneHandle

Transfer ownership: None Nullable: False

type TimeType

Transfer ownership: None Nullable: False

time long

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetAbbreviation(TimeZoneHandle, int)

Calls native method g_time_zone_get_abbreviation. Version: 2.26

[Version("2.26")]
public static extern NonNullableUtf8StringUnownedHandle GetAbbreviation(TimeZoneHandle tz, int interval)

Parameters

tz TimeZoneHandle

Transfer ownership: None Nullable: False

interval int

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetGType()

Calls native function g_time_zone_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetIdentifier(TimeZoneHandle)

Calls native method g_time_zone_get_identifier. Version: 2.58

[Version("2.58")]
public static extern NonNullableUtf8StringUnownedHandle GetIdentifier(TimeZoneHandle tz)

Parameters

tz TimeZoneHandle

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetOffset(TimeZoneHandle, int)

Calls native method g_time_zone_get_offset. Version: 2.26

[Version("2.26")]
public static extern int GetOffset(TimeZoneHandle tz, int interval)

Parameters

tz TimeZoneHandle

Transfer ownership: None Nullable: False

interval int

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

IsDst(TimeZoneHandle, int)

Calls native method g_time_zone_is_dst. Version: 2.26

[Version("2.26")]
public static extern bool IsDst(TimeZoneHandle tz, int interval)

Parameters

tz TimeZoneHandle

Transfer ownership: None Nullable: False

interval int

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

New(NullableUtf8StringHandle)

Calls native constructor g_time_zone_new. Version: 2.26

[Version("2.26")]
public static extern TimeZoneOwnedHandle New(NullableUtf8StringHandle identifier)

Parameters

identifier NullableUtf8StringHandle

Transfer ownership: None Nullable: True

Returns

TimeZoneOwnedHandle

Transfer ownership: Full Nullable: False

NewIdentifier(NullableUtf8StringHandle)

Calls native constructor g_time_zone_new_identifier. Version: 2.68

[Version("2.68")]
public static extern TimeZoneOwnedHandle NewIdentifier(NullableUtf8StringHandle identifier)

Parameters

identifier NullableUtf8StringHandle

Transfer ownership: None Nullable: True

Returns

TimeZoneOwnedHandle

Transfer ownership: Full Nullable: True

NewLocal()

Calls native constructor g_time_zone_new_local. Version: 2.26

[Version("2.26")]
public static extern TimeZoneOwnedHandle NewLocal()

Returns

TimeZoneOwnedHandle

Transfer ownership: Full Nullable: False

NewOffset(int)

Calls native constructor g_time_zone_new_offset. Version: 2.58

[Version("2.58")]
public static extern TimeZoneOwnedHandle NewOffset(int seconds)

Parameters

seconds int

Transfer ownership: None Nullable: False

Returns

TimeZoneOwnedHandle

Transfer ownership: Full Nullable: False

NewUtc()

Calls native constructor g_time_zone_new_utc. Version: 2.26

[Version("2.26")]
public static extern TimeZoneOwnedHandle NewUtc()

Returns

TimeZoneOwnedHandle

Transfer ownership: Full Nullable: False

Ref(TimeZoneHandle)

Calls native method g_time_zone_ref. Version: 2.26

[Version("2.26")]
public static extern TimeZoneOwnedHandle Ref(TimeZoneHandle tz)

Parameters

tz TimeZoneHandle

Transfer ownership: None Nullable: False

Returns

TimeZoneOwnedHandle

Transfer ownership: Full Nullable: False

Unref(TimeZoneHandle)

Calls native method g_time_zone_unref. Version: 2.26

[Version("2.26")]
public static extern void Unref(TimeZoneHandle tz)

Parameters

tz TimeZoneHandle

Transfer ownership: None Nullable: False