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.

Definition

Namespace: Gemstone.Units
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.138 -- Release Build+dacff88cce10d287c7434d5aac59c76948c712b1
public string ToString(
	int secondPrecision,
	double minimumSubSecondResolution = 0.001
)

Parameters

secondPrecision  Int32
Number of fractional digits to display for seconds.
minimumSubSecondResolution  Double  (Optional)
Minimum sub-second resolution to display. Defaults to Milli.

Return Value

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.

Remarks

Set second precision to -1 to suppress seconds display.

Exceptions

ArgumentOutOfRangeExceptionminimumSubSecondResolution is not less than or equal to Milli or minimumSubSecondResolution is not defined in Factors array.

See Also