Table of Contents

Class TimeZone

Namespace
GLib
Assembly
GLib-2.0.dll
public sealed class TimeZone : BoxedRecord, IEquatable<TimeZone>
Inheritance
TimeZone
Implements
Inherited Members

Constructors

TimeZone(TimeZoneOwnedHandle)

public TimeZone(TimeZoneOwnedHandle handle)

Parameters

handle TimeZoneOwnedHandle

Properties

Handle

public TimeZoneOwnedHandle Handle { get; }

Property Value

TimeZoneOwnedHandle

Methods

AdjustTime(TimeType, ref long)

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

Parameters

type TimeType
time long

Returns

int

Equals(TimeZone?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(TimeZone? other)

Parameters

other TimeZone

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

FindInterval(TimeType, long)

[Version("2.26")]
public int FindInterval(TimeType type, long time)

Parameters

type TimeType
time long

Returns

int

GetAbbreviation(int)

[Version("2.26")]
public string GetAbbreviation(int interval)

Parameters

interval int

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetIdentifier()

[Version("2.58")]
public string GetIdentifier()

Returns

string

GetOffset(int)

[Version("2.26")]
public int GetOffset(int interval)

Parameters

interval int

Returns

int

IsDst(int)

[Version("2.26")]
public bool IsDst(int interval)

Parameters

interval int

Returns

bool

New(string?)

[Version("2.26")]
public static TimeZone New(string? identifier)

Parameters

identifier string

Returns

TimeZone

NewIdentifier(string?)

[Version("2.68")]
public static TimeZone? NewIdentifier(string? identifier)

Parameters

identifier string

Returns

TimeZone

NewLocal()

[Version("2.26")]
public static TimeZone NewLocal()

Returns

TimeZone

NewOffset(int)

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

Parameters

seconds int

Returns

TimeZone

NewUtc()

[Version("2.26")]
public static TimeZone NewUtc()

Returns

TimeZone

Ref()

[Version("2.26")]
public TimeZone Ref()

Returns

TimeZone

Unref()

[Version("2.26")]
public void Unref()