Show / Hide Table of Contents

Class TimeZoneUtility

Inheritance
object
TimeZoneUtility
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Util
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public static class TimeZoneUtility

Methods

Construct_Loction_Collection(string, string, string)

Declaration
public static string[] Construct_Loction_Collection(string cities, string region, string country)
Parameters
Type Name Description
string cities
string region
string country
Returns
Type Description
string[]

Try_Get_IANA_TimeZone_ID_For_DST_Offset(Offset, out string)

Declaration
public static bool Try_Get_IANA_TimeZone_ID_For_DST_Offset(Offset dst_offset, out string iana_id)
Parameters
Type Name Description
Offset dst_offset
string iana_id
Returns
Type Description
bool

Try_Get_IANA_TimeZone_ID_For_Location(string, out string)

Declaration
public static bool Try_Get_IANA_TimeZone_ID_For_Location(string location, out string id)
Parameters
Type Name Description
string location
string id
Returns
Type Description
bool

Try_Get_IANA_TimeZone_ID_For_Location_Or_Offset(string, Offset, Offset?, out string)

Attempts to find an IANA-id. 1. Tries to map on name of location. This would be most accurate. 2. Tries to map based on matching both std_offset and the dst_offset. 3. Falls back to only matching on std_offset. Debatable if wise.

Declaration
public static bool Try_Get_IANA_TimeZone_ID_For_Location_Or_Offset(string location, Offset std_offset, Offset? dst_offset, out string iana_id)
Parameters
Type Name Description
string location
Offset std_offset
Offset? dst_offset
string iana_id
Returns
Type Description
bool

Try_Get_IANA_TimeZone_ID_For_Location_Or_Offset(string, int, int?, out string)

Declaration
public static bool Try_Get_IANA_TimeZone_ID_For_Location_Or_Offset(string location, int std_bias, int? dst_bias, out string iana_id)
Parameters
Type Name Description
string location
int std_bias
int? dst_bias
string iana_id
Returns
Type Description
bool

Try_Get_IANA_TimeZone_ID_For_Locations(string[], out string)

Declaration
public static bool Try_Get_IANA_TimeZone_ID_For_Locations(string[] locations, out string iana_id)
Parameters
Type Name Description
string[] locations
string iana_id
Returns
Type Description
bool

Try_Get_IANA_TimeZone_ID_For_Locations(string[], out string[])

Declaration
public static bool Try_Get_IANA_TimeZone_ID_For_Locations(string[] locations, out string[] iana_ids)
Parameters
Type Name Description
string[] locations
string[] iana_ids
Returns
Type Description
bool

Try_Get_IANA_TimeZone_ID_For_Locations_Or_Offset(string[], Offset, Offset?, out string)

Attempts to find an IANA-id. 1. Tries to map on name of city. This would be most accurate. 2. Tries to map based on matching both std_offset and the dst_offset. 3. Falls back to only matching on std_offset. Debatable if wise.

Declaration
public static bool Try_Get_IANA_TimeZone_ID_For_Locations_Or_Offset(string[] locations, Offset std_offset, Offset? dst_offset, out string iana_id)
Parameters
Type Name Description
string[] locations
Offset std_offset
Offset? dst_offset
string iana_id
Returns
Type Description
bool

Try_Get_IANA_TimeZone_ID_For_Locations_Or_Offset(string[], int, int?, out string)

Declaration
public static bool Try_Get_IANA_TimeZone_ID_For_Locations_Or_Offset(string[] locations, int std_bias, int? dst_bias, out string iana_id)
Parameters
Type Name Description
string[] locations
int std_bias
int? dst_bias
string iana_id
Returns
Type Description
bool

Try_Get_IANA_TimeZone_ID_For_STD_And_DST_Offset(Offset, Offset, out string)

Attempts to find an IANA-id that matches both the std_offset and dst_offset.

Declaration
public static bool Try_Get_IANA_TimeZone_ID_For_STD_And_DST_Offset(Offset std_offset, Offset dst_offset, out string iana_id)
Parameters
Type Name Description
Offset std_offset
Offset dst_offset
string iana_id
Returns
Type Description
bool

Try_Get_IANA_TimeZone_ID_For_STD_Offset(Offset, out string)

Declaration
public static bool Try_Get_IANA_TimeZone_ID_For_STD_Offset(Offset std_offset, out string iana_id)
Parameters
Type Name Description
Offset std_offset
string iana_id
Returns
Type Description
bool
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top