Class TimeZone
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class TimeZone : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<TimeZone>, IDisposable
- Inheritance
-
TimeZone
- Implements
- Inherited Members
Constructors
TimeZone(TimeZoneOwnedHandle)
public TimeZone(TimeZoneOwnedHandle handle)
Parameters
handleTimeZoneOwnedHandle
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
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Equals(TimeZone?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(TimeZone? other)
Parameters
otherTimeZoneAn 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
objobjectThe 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
intervalint
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
intervalint
Returns
IsDst(int)
[Version("2.26")]
public bool IsDst(int interval)
Parameters
intervalint
Returns
New(string?)
[Version("2.26")]
public static TimeZone New(string? identifier)
Parameters
identifierstring
Returns
NewIdentifier(string?)
[Version("2.68")]
public static TimeZone? NewIdentifier(string? identifier)
Parameters
identifierstring
Returns
NewLocal()
[Version("2.26")]
public static TimeZone NewLocal()
Returns
NewOffset(int)
[Version("2.58")]
public static TimeZone NewOffset(int seconds)
Parameters
secondsint
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()