Member group
ToString
Declaring type: Duration
Module: System.Time
Assembly: System.Runtime.dll
Source file: Duration.rvn
Overloads / Variants
ToString
func ToString(format: string, culture: Culture) -> string
Source file: Duration.rvn
Implements Formattable.ToString
Supports empty/c/t/T (invariant), g (optional day and fractional digits) and G (day and seven fractional digits always present). Swedish g/G uses a comma. Unsupported specifiers fault. All signed Int64 tick values are supported.
Parameters
| Name | Type | Description |
|---|---|---|
format |
String | |
culture |
Culture |
Return value
ToString
func ToString(format: string) -> string
Source file: Duration.rvn
Formats with Culture.Current for g/G; c, t and T are invariant.
Parameters
| Name | Type | Description |
|---|---|---|
format |
String |
Return value
ToString
virtual override func ToString() -> string
Source file: Duration.rvn
Overrides Object.ToString
Formats the invariant constant representation, including every tick of precision.