Class TimeZoneInfoUtilities
Exends class System.TimeZoneInfo.
Inheritance
System.Object
TimeZoneInfoUtilities
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Common
Assembly: Terrasoft.Common.dll
Syntax
[Obsolete("7.14.2 | Class is not in use and will be removed in upcoming releases")]
public static class TimeZoneInfoUtilities
Methods
GetIanaTimeZoneNameByWindowsTimeZoneName(TimeZoneInfo, String)
Returns internet assigned numbers authority time zone name by windows time zone name.
Declaration
public static string GetIanaTimeZoneNameByWindowsTimeZoneName(this TimeZoneInfo source, string windowsTimeZone)
Parameters
Type | Name | Description |
---|---|---|
System.TimeZoneInfo | source | instance System.TimeZoneInfo. |
System.String | windowsTimeZone | Windows time zone name. |
Returns
Type | Description |
---|---|
System.String | Internet assigned numbers authority time zone name. |
GetWindowsTimeZoneNameByIanaTimeZoneName(TimeZoneInfo, String)
Returns windows time zone name by internet assigned numbers authority time zone name.
Declaration
public static string GetWindowsTimeZoneNameByIanaTimeZoneName(this TimeZoneInfo source, string ianaTimeZone)
Parameters
Type | Name | Description |
---|---|---|
System.TimeZoneInfo | source | instance System.TimeZoneInfo. |
System.String | ianaTimeZone | Internet assigned numbers authority time zone name. |
Returns
Type | Description |
---|---|
System.String | Windows time zone name. |