Class TimeZoneUtility
Inheritance
TimeZoneUtility
Assembly: SoDataBase.dll
Syntax
public static class TimeZoneUtility : Object
Methods
Construct_Loction_Collection(String, String, String)
Declaration
public static string[] Construct_Loction_Collection(string cities, string region, string country)
Parameters
Returns
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
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
Returns
Try_Get_IANA_TimeZone_ID_For_Location_Or_Offset(String, Offset, Nullable<Offset>, out String)
Attempts to find an IANA-id.
- Tries to map on name of location. This would be most accurate.
- Tries to map based on matching both std_offset and the dst_offset.
- 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, Nullable<Offset> dst_offset, out string iana_id)
Parameters
Returns
Try_Get_IANA_TimeZone_ID_For_Location_Or_Offset(String, Int32, Nullable<Int32>, out String)
Declaration
public static bool Try_Get_IANA_TimeZone_ID_For_Location_Or_Offset(string location, int std_bias, Nullable<int> dst_bias, out string iana_id)
Parameters
Returns
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
Returns
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
Returns
Try_Get_IANA_TimeZone_ID_For_Locations_Or_Offset(String[], Offset, Nullable<Offset>, out String)
Attempts to find an IANA-id.
- Tries to map on name of city. This would be most accurate.
- Tries to map based on matching both std_offset and the dst_offset.
- 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, Nullable<Offset> dst_offset, out string iana_id)
Parameters
Type |
Name |
Description |
String[] |
locations |
|
Offset |
std_offset |
|
Nullable<Offset> |
dst_offset |
|
String |
iana_id |
|
Returns
Try_Get_IANA_TimeZone_ID_For_Locations_Or_Offset(String[], Int32, Nullable<Int32>, out String)
Declaration
public static bool Try_Get_IANA_TimeZone_ID_For_Locations_Or_Offset(string[] locations, int std_bias, Nullable<int> dst_bias, out string iana_id)
Parameters
Returns
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
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