TimeZoneIDTryGetUtcOffset Method

Tries to find a corresponding UTC offset for the TimeZoneID object.

Definition

Namespace: FolkerKinzel.VCards.Models
Assembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
C#
public bool TryGetUtcOffset(
	out TimeSpan? utcOffset,
	ITimeZoneIDConverter? converter = null
)

Parameters

utcOffset  TimeSpan
Contains the UTC offset after the method has been successfully returned. The argument is passed uninitialized.
converter  ITimeZoneIDConverter  (Optional)
An object that implements ITimeZoneIDConverter to convert IANA time zone names to UTC offsets, or null.

Return Value

Boolean
true if a suitable UTC offset could be found, otherwise false.

See Also