Table of Contents

Method ToString

Namespace
KZDev.SystemClock.PrimeTime
Assembly
KZDev.SystemClock.PrimeTime.dll

ToString()

Converts the value of the current LocalTimeOfDay 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 LocalTimeOfDay instance to its equivalent string representation using the specified culture-specific format information.

public string ToString(IFormatProvider? provider)

Parameters

provider IFormatProvider

The 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 LocalTimeOfDay instance to its equivalent string representation using the specified format and the formatting conventions of the current culture.

public string ToString(string? format)

Parameters

format string

A 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 LocalTimeOfDay instance to its equivalent string representation using the specified format and culture-specific format information.

public string ToString(string? format, IFormatProvider? provider)

Parameters

format string

A standard or custom time format string.

provider IFormatProvider

The 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'.