Method ToString
ToString()
Converts the value of the current UtcTimeOfDay instance to its equivalent short time string representation using the formatting conventions of the current culture.
public override string ToString()
Returns
- string
The short time string representation of the current instance.
ToString(IFormatProvider?)
Converts the value of the current UtcTimeOfDay instance to its equivalent string representation using the specified culture-specific format information.
public string ToString(IFormatProvider? provider)
Parameters
providerIFormatProviderThe culture-specific formatting information.
Returns
- string
A string representation of the current instance as specified by
provider.
ToString(string?)
Converts the value of the current UtcTimeOfDay instance to its equivalent string representation using the specified format and the formatting conventions of the current culture.
public string ToString(string? format)
Parameters
formatstringA standard or custom time format string.
Returns
- string
A string representation of the current instance with the specified format and the formatting conventions of the current culture.
Remarks
The accepted standard formats are 'r', 'R', 'o', 'O', 't' and 'T'.
ToString(string?, IFormatProvider?)
Converts the value of the current UtcTimeOfDay instance to its equivalent string representation using the specified format and culture-specific format information.
public string ToString(string? format, IFormatProvider? provider)
Parameters
formatstringA standard or custom time format string.
providerIFormatProviderThe culture-specific formatting information.
Returns
- string
A string representation of the value of the current instance.
Remarks
The accepted standard formats are 'r', 'R', 'o', 'O', 't' and 'T'.