Contents

UnitDuration

A unit of measure for a duration of time.

Declaration

class UnitDuration

Overview

You typically use instances of UnitDuration to represent specific quantities of planar angle using the NSMeasurement class.

Duration

Duration is a quantity of time. The SI unit for time is the second (sec), which is defined in terms of the radioactivity of a cesium-133 atom. Duration is also commonly expressed in terms of minutes (min) and hours (hr).

The UnitDuration class defines its baseUnit() as seconds, and provides the following units, which UnitConverterLinear converters initialize with the given coefficients:

Name

Method

Symbol

Coefficient

Seconds

Seconds

sec

1

Minutes

Minutes

min

60

Hours

Hours

hr

3600

Topics

Accessing the Base Unit

Accessing Predefined Units

See Also

Time and Motion