|
OpenTAP 9.31
API Reference
|
Contains helper functions to format a time span into a human readable string. More...
Static Public Member Functions | |
| static string | Format (TimeSpan timespan, FormatVerbosities verbosity=FormatVerbosities.Normal, bool unitSpacer=true, bool includeZeros=true, bool includeSplitSeconds=true, CultureInfo numberFormatCulture=null) |
| Formats a timespan to a string like "3 min 4 sec". More... | |
Contains helper functions to format a time span into a human readable string.
|
inlinestatic |
Formats a timespan to a string like "3 min 4 sec".
| timespan | The timespan. |
| verbosity | The verbosity. |
| unitSpacer | true to insert a space before each unit. |
| includeZeros | true to include those parts of the timespan that are zero, starting with hours, e.g. "0h 2m 0s" instead of just "2m". |
| includeSplitSeconds | true to include, false to exclude the fractions of the second portion. |
| numberFormatCulture | The Culture to use for number formatting. Since milliseconds are displayed as fractions of seconds, this effects the decimal delimiter. By default, the DefaultThreadCurrentCulture is used. |
OpenTAP 9.31 API built Fri Oct 17 2025 07:12:37