IdtTimeZoneLocalizedName Method

Gets the CLDR display name of this IdtTimeZone at a point in time, for a culture and TimeZoneNameStyle.

Definition

Namespace: InnerDrive.TimeZones
Assembly: InnerDrive.TimeZones (in InnerDrive.TimeZones.dll) Version: 5.3.9728.0
C#
public string LocalizedName(
	DateTimeOffset time,
	CultureInfo? culture = null,
	TimeZoneNameStyle style = TimeZoneNameStyle.LongGeneric,
	CldrNameNotFoundBehavior behavior = CldrNameNotFoundBehavior.ReturnZoneName
)

Parameters

time  DateTimeOffset
The point in time to resolve time-dependent metazone membership, and the zone's UTC offset, at.
culture  CultureInfo  (Optional)
The culture to resolve the name in (default: CurrentUICulture)
style  TimeZoneNameStyle  (Optional)
The requested TimeZoneNameStyle
behavior  CldrNameNotFoundBehavior  (Optional)
Determines the behavior of the method if no CLDR name can be resolved

Return Value

String
The resolved CLDR name.

Exceptions

ArgumentExceptionNo CLDR name could be resolved andbehavior is ThrowOnNotFound.

See Also