/// <summary> /// Gets the all TZ id values (often there is only one) for this TimeZoneInfo. /// This is an indirection call to DotNetXtensions.Time.GetTZValuesFromWindowsTimeZoneId. /// </summary> /// <param name="tzi">TimeZoneInfo</param> public static TZKeyValues TZIdValues(this TimeZoneInfo tzi) { if (tzi == null) { return(null); } return(TimeZones.GetTZValuesFromWindowsTimeZoneId(tzi.Id)); }
/// <summary> /// Gets the first TZ Id value for this TimeZoneInfo. This is an indirection /// call to DotNetXtensions.Time.GetTZValueFromWindowsTimeZoneId. /// </summary> /// <param name="tzi">TimeZoneInfo</param> public static string TZId(this TimeZoneInfo tzi) { if (tzi == null) { return(null); } return(TimeZones.GetTZValueFromWindowsTimeZoneId(tzi.Id)); }