TimeUnit

Enum

The TimeUnit enum defines all available time unit options for time-based measurements. These units are used in the Measurement object when the measurement type is 'time'.

Valid values

ValueDescription
msMilliseconds - Supports up to 0 decimal places (whole numbers only).
sSeconds - Supports up to 2 decimal places.
minMinutes - Default unit for time measurements. Supports up to 2 decimal places.
hHours - Supports up to 2 decimal places.
dDays - Supports up to 2 decimal places.
wkWeeks - Supports up to 2 decimal places.
Type: This is a string enum type. The unit field in the Measurement object accepts one of these values when the measurement type is time.
Related: This enum is used for time-based measurements. The measurement type is determined by the measurementType field in the Product object. See MeasurementType for more information.