Parse
This static method returns an OracleIntervalDS
instance and sets its value for time interval using a string.
Declaration
// C#
public static OracleIntervalDS Parse(string intervalStr);
Parameters
-
intervalStr
A string representing the Oracle
INTERVAL
DAY
TO
SECOND
.
Return Value
Returns an OracleIntervalDS
instance representing the time interval from the supplied string.
Exceptions
ArgumentException
- The intervalStr
parameter is not in the valid format or intervalStr
has an invalid value.
ArgumentNullException
- The intervalStr
parameter is null.
Remarks
The value specified in intervalStr
must be in Day HH:MI:SSxFF format.
Example
"1
2:3:4.99
" means 1 day, 2 hours, 3 minutes, 4 seconds, and 990 milliseconds or 1 day, 2 hours, 3 minutes, 4 seconds, and 990000000 nanoseconds.