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
Methods
AdjustTime(TimeType, ref long)
[Version("2.26")]
public int AdjustTime(TimeType type, ref long time)
Parameters
Returns
Equals(TimeZone?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(TimeZone? other)
Parameters
other
TimeZoneAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
FindInterval(TimeType, long)
[Version("2.26")]
public int FindInterval(TimeType type, long time)
Parameters
Returns
GetAbbreviation(int)
[Version("2.26")]
public string GetAbbreviation(int interval)
Parameters
interval
int
Returns
GetGType()
public static Type GetGType()
Returns
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
GetOffset(int)
[Version("2.26")]
public int GetOffset(int interval)
Parameters
interval
int
Returns
IsDst(int)
[Version("2.26")]
public bool IsDst(int interval)
Parameters
interval
int
Returns
New(string?)
[Version("2.26")]
public static TimeZone New(string? identifier)
Parameters
identifier
string
Returns
NewIdentifier(string?)
[Version("2.68")]
public static TimeZone? NewIdentifier(string? identifier)
Parameters
identifier
string
Returns
NewLocal()
[Version("2.26")]
public static TimeZone NewLocal()
Returns
NewOffset(int)
[Version("2.58")]
public static TimeZone NewOffset(int seconds)
Parameters
seconds
int
Returns
NewUtc()
[Version("2.26")]
public static TimeZone NewUtc()
Returns
Ref()
[Version("2.26")]
public TimeZone Ref()
Returns
Unref()
[Version("2.26")]
public void Unref()