TimeZoneIDTryGetUtcOffset Method
Tries to find a corresponding UTC offset for the
TimeZoneID
object.
Namespace: FolkerKinzel.VCards.ModelsAssembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
public bool TryGetUtcOffset(
out TimeSpan? utcOffset,
ITimeZoneIDConverter? converter = null
)
Public Function TryGetUtcOffset (
<OutAttribute> ByRef utcOffset As TimeSpan,
Optional converter As ITimeZoneIDConverter = Nothing
) As Boolean
public:
bool TryGetUtcOffset(
[OutAttribute] TimeSpan% utcOffset,
ITimeZoneIDConverter^ converter = nullptr
)
member TryGetUtcOffset :
utcOffset : TimeSpan byref *
?converter : ITimeZoneIDConverter
(* Defaults:
let _converter = defaultArg converter null
*)
-> bool
- 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.
Booleantrue if a suitable UTC offset could be found, otherwise
false.