Duration ToString Method (String, IFormatProvider)Noda Time
Formats the value of the current instance using the specified pattern.

Namespace: NodaTime
Assembly: NodaTime (in NodaTime.dll) Version: 1.3.0.0 (1.3.1)
Syntax

public string ToString(
	string patternText,
	IFormatProvider formatProvider
)

Parameters

patternText
Type: OnlineSystem String
The OnlineString specifying the pattern to use, or null to use the default format pattern ("o").
formatProvider
Type: OnlineSystem IFormatProvider
The OnlineIFormatProvider to use when formatting the value, or null to use the current thread's culture to obtain a format provider.

Return Value

Type: OnlineString
A OnlineString containing the value of the current instance in the specified format.

Implements

OnlineIFormattable ToString(String, IFormatProvider)
Version Information

Available since: 1.2.0
Supported in the PCL? Yes
See Also