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: 2025.1.9.0
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
C#
public Period(
string? period
)VB
Public Sub New (
period As String
)C++
public:
Period(
String^ period
)F#
new :
period : string -> PeriodParameters
- 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
| ArgumentException | This is thrown if the specified period string or any of its parts are not valid. |