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

TimeUnitsConverter Class

Converts time measurement from one unit to another.

Namespace: DevExpress.UnitConversion

Assembly: DevExpress.Docs.v18.2.dll

Declaration

public class TimeUnitsConverter :
    BaseUnitsConverter<Time>

The following members return TimeUnitsConverter objects:

Remarks

Use the PrefixUnitsConverter<T>.Convert method to perform the conversion.

To convert one year to minutes, use the following code:


double result = Units.Time.Convert(1.0f, Time.Year, Time.Minute);

Inheritance

Object
BaseUnitsConverter<Time>
TimeUnitsConverter
See Also