DateUtilsFromISO8601TimeZone Method

This method is used to convert an ISO 8601 time zone string into a TimeSpan object.

Definition

Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2023.1.2.0
public static TimeSpan FromISO8601TimeZone(
	string timeZone
)

Parameters

timeZone  String
The ISO 8601 formatted time zone to parse

Return Value

TimeSpan
The specified string converted to a time span

Remarks

The string should be in the form +HH:MM or -HH:MM. The sign (+/-) and time separator (:) are optional as are the minutes. If minutes are not present, they are defaulted to zero.

Exceptions

ArgumentExceptionThis is thrown if the specified time zone string is not valid

See Also