Skip to main content
A newer version of this page is available. .

HumanReadableTimeSpanHelper.ToString(TimeSpan) Method

Converts the specified TimeSpan value to a string.

Namespace: DevExpress.XtraScheduler.Native

Assembly: DevExpress.XtraScheduler.v19.2.Core.dll

Declaration

public static string ToString(
    TimeSpan val
)

Parameters

Name Type Description
val TimeSpan

A TimeSpan value to convert.

Returns

Type Description
String

A String value that is the text representation of the time span. If the specified time span cannot be converted to a string, the Empty value is returned.

Remarks

The ToString method uses SchedulerStringId values for format strings and abbreviations, so the result is localizable. To modify localizable strings, use the standard localization technique described in the Localization topic.

To implement a custom conversion procedure, handle the HumanReadableTimeSpanHelper.ConvertToString event.

See Also