Angular filter

sraDuration source

The sraDuration Filter formats the number of seconds to days:hours:minutes:seconds.milliseconds{UOM}. "value" can either be a decimal number or a Data object. If it is a Data object, then the Unit of Measure is appended.
Dependencies:
NameTypeDescription
time number The number of seconds or Data object containing seconds to format
precision number (Optional) The number of decimal places for displaying the milliseconds, default 3.
showPositive boolean If true, prefix the positive symbol, default false.
blankIfZero boolean (Optional) true to return a blank if zero, default false.
showMinutes boolean (Optional) true will always show minutes, even if less than 1 minute, default false.
showApproximateOnly boolean (Optional) true will only show the tilde(~) if the value is estimated, default false.