convertDurationToString
Overview
Serializes a duration plain object back into a Django-style duration string (D HH:MM:SS).
Signature
convertDurationToString(durationObject)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| durationObject | object | yes | The duration to serialize. |
durationObject Properties
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| days | number | no | ||
| hours | number | no | ||
| minutes | number | no | ||
| seconds | number | no |
Returns
string
The formatted duration string.
Source
client/lib/utils/duration.js:32