Skip to main content
Skip table of contents

DurationModel

Represents a timespan.

implements: hash
bundle: online channel standard (oc)
since 4.5.0
Represents a timespan.

A duration in time splitted to human measure.

Defined hash keys

day ↦ Number
since 4.5.0
Returns the days from duration.

hour ↦ Number
since 4.5.0
Returns the hours from duration.

millisecond ↦ Number
since 4.5.0
Returns the milliseconds from duration.

minute ↦ Number
since 4.5.0
Returns the minutes from duration.

month ↦ Number
since 4.5.0
Returns the months from duration.

second ↦ Number
since 4.5.0
Returns the seconds from duration.

year ↦ Number
since 4.5.0
Returns the years from duration.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.