Period(String) Constructor
Construct a period from a string in ISO 8601 period format
Namespace: EWSoftware.PDIAssembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2023.1.2.0
public Period(
string period
)
Public Sub New (
period As String
)
public:
Period(
String^ period
)
new :
period : string -> Period
Parameters
- period String
- The ISO 8601 formatted period to parse
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.
ArgumentException | This is thrown if the specified period string or any of its parts
are not valid. |