Period(String) Constructor

Construct a period from a string in ISO 8601 period format

Definition

Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2023.1.2.0
public Period(
	string period
)

Parameters

period  String
The ISO 8601 formatted period to parse

Remarks

This parses a string in the form [dateTime]/[dateTime] or [dateTime]/[duration] to create a period. The [dateTime] part(s) should be ISO 8601 formatted date/time values (see FromISO8601String(String, Boolean)). The [duration] part should be an ISO 8601 formatted duration value (see Duration). The period format is set based on the format of the string received.

Exceptions

ArgumentExceptionThis is thrown if the specified period string or any of its parts are not valid.

See Also