Skip to main content

TimeUnitsConverter Class

Converts time measurement from one unit to another.

Namespace: DevExpress.UnitConversion

Assembly: DevExpress.Docs.v24.1.dll

NuGet Package: DevExpress.Document.Processor

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