Click or drag to resize
Ranorex

DurationToString Method (String)

Returns a string representation of this instance.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public string ToString(
	string format
)

Parameters

format
Type: SystemString
The String specifying the format to use or null to use the default format.

Return Value

Type: String
A string representation of this instance.
Remarks
The following string values are valid for format:
Format StringDescription and Associated Properties
gGeneral format. Replaces the format string by ms, s, m, or t as appropriate regarding the value of this instance.
msMillisecond format.
sSecond format.
hHour format.
dDay format.
tFull format, equal to the format returned by ToString.
If you use capital letters for the string format, the precision of the returned string representation is extended by three decimal digits. Adding '0' as a suffix will result in non-significant zeros to always be displayed, e.g. 'g0'.
See Also