HumanReadableTimeSpanHelper.ToString(TimeSpan) Method

Converts the specified TimeSpan value to a string.

Namespace: DevExpress.XtraScheduler.Native

Assembly: DevExpress.XtraScheduler.v20.1.Core.dll


public static string ToString(
    TimeSpan val
Public Shared Function ToString(
    val As TimeSpan
) As String


Name Type Description
val TimeSpan

A TimeSpan value to convert.


Type Description

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.


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