This static method returns a new instance of an OracleTimeStampLTZ with the specified fractional second precision.
Declaration
// C# public static OracleTimeStampLTZ SetPrecision(OracleTimeStampLTZ value1, int fracSecPrecision);
Parameters
value1
The provided OracleTimeStampLTZ object.
fracSecPrecision
The fractional second precision provided. Range of fractional second precision is (0 to 9).
Return Value
An OracleTimeStampLTZ structure with the specified fractional second precision
Exceptions
ArgumentOutOfRangeException - fracSecPrecision is out of the specified range.
Remarks
The value specified in the supplied fracSecPrecision parameter is used to perform a rounding off operation on the supplied OracleTimeStampLTZ value. Depending on this value, 0 or more trailing zeros are displayed in the string returned by ToString().
Example
The OracleTimeStampLTZ with a value of "December 31, 9999 23:59:59.99" results in the string "December 31, 9999 23:59:59.99000" when SetPrecision() is called with the fractional second precision set to 5.