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.1.0+9753915cd0f8006e7e5b4f62aa63aa3651006f06
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.