Class TimeZoneUtility
Inheritance
TimeZoneUtility
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
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, 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
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
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, 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
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
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