TimeToString(Int32, Double) Method
Converts the
Time value into a textual representation of years, days, hours,
minutes and seconds with the specified number of fractional digits.
Namespace: Gemstone.UnitsAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public string ToString(
int secondPrecision,
double minimumSubSecondResolution = 0.001
)
Public Function ToString (
secondPrecision As Integer,
Optional minimumSubSecondResolution As Double = 0.001
) As String
public:
String^ ToString(
int secondPrecision,
double minimumSubSecondResolution = 0.001
)
function ToString(secondPrecision, minimumSubSecondResolution);
- secondPrecision Int32
- Number of fractional digits to display for seconds.
- minimumSubSecondResolution Double (Optional)
-
Minimum sub-second resolution to display. Defaults to Milli.
String
The string representation of the value of this instance, consisting of the number of
years, days, hours, minutes and seconds represented by this value.
Set second precision to -1 to suppress seconds display.
ArgumentOutOfRangeException | minimumSubSecondResolution is not less than or equal to Milli or
minimumSubSecondResolution is not defined in Factors array.
|