Class TimeZone
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
TimeZoneHandleTransfer ownership: None Nullable: False
type
TimeTypeTransfer ownership: None Nullable: False
time
longTransfer 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
TimeZoneHandleTransfer ownership: None Nullable: False
type
TimeTypeTransfer ownership: None Nullable: False
time
longTransfer 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
TimeZoneHandleTransfer ownership: None Nullable: False
interval
intTransfer 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
TimeZoneHandleTransfer 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
TimeZoneHandleTransfer ownership: None Nullable: False
interval
intTransfer 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
TimeZoneHandleTransfer ownership: None Nullable: False
interval
intTransfer 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
NullableUtf8StringHandleTransfer 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
NullableUtf8StringHandleTransfer 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
intTransfer 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
TimeZoneHandleTransfer 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
TimeZoneHandleTransfer ownership: None Nullable: False