TimeZone.Parse MethodTimeZone.Parse MethodTimeZone::Parse Method

Converts a lexical representation to its TimeZoneTimeZoneTimeZone equivalent.

Syntax

Public Shared Function Parse( _
    value As String _
) As TimeZone
public static TimeZone Parse(
    string value
)
public:
static TimeZone Parse(
    String^ value
)
 

Parameters

value

Type: System.StringSystem.StringSystem::String^

The lexical value to convert.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionvalue is null a null reference (Nothing in Visual Basic) nullptr.
FormatExceptionFormatExceptionFormatException value is not a valid lexical value of a time zone.

Remarks

The lexical representation is as parsing a time zone from an xs:dateTime. It is in the format (('+' | '-') hh ':' mm) | 'Z'