Convert

Convert

Converts Duration object to another duration with specified time units.

Returns: returns new duration with the specified unit type.

Convert(TimeUnitType timeUnitType)
ParameterDescription
timeUnitTypethe specified time unit type.