Skip to main content

DateTimeConverter.TimeSpanFromTime(Nullable<DateTime>, TimeSpan) Method

Converts DateTime values with the specified reference date to a TimeSpan value.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

Declaration

public static TimeSpan? TimeSpanFromTime(
    DateTime? time,
    TimeSpan referencedTimeSpan
)

Parameters

Name Type Description
time Nullable<DateTime>

The DateTime value to convert.

referencedTimeSpan TimeSpan

The reference TimeSpan value.

Returns

Type Description
Nullable<TimeSpan>

The conversion result.

See Also