<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`DurationValue`](DurationValue) ## DurationValue class [Value](Value) wrapping a duration. Durations can be used to modify a [DateValue](DateValue) or can result from subtracting a DateValue from another. 1.10.0 **Signature:** ```typescript export class DurationValue extends NotNullValue ``` **Extends:** [`NotNullValue`](NotNullValue) ## Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [`type`](Value/type) | <code>static</code> | <code>string</code> | <p> 1.10.0</p><p>(Inherited from [Value](Value)<!-- -->)</p> | ## Methods | Method | Modifiers | Description | | --- | --- | --- | | [`addToDate(value, subtract)`](DurationValue/addToDate) | | <p>Modifies the provided by this duration.</p><p> 1.10.0</p> | | [`equals(other)`](Value/equals) | | <p> 1.10.0</p><p>(Inherited from [Value](Value)<!-- -->)</p> | | [`equals(a, b)`](Value/equals) | <code>static</code> | <p> 1.10.0</p><p>(Inherited from [Value](Value)<!-- -->)</p> | | [`fromMilliseconds(milliseconds)`](DurationValue/fromMilliseconds) | <code>static</code> | <p>Create a new DurationValue from milliseconds.</p><p> 1.10.0</p> | | [`getMilliseconds()`](DurationValue/getMilliseconds) | | <p>Convert this duration into milliseconds.</p><p> 1.10.0</p> | | [`isTruthy()`](DurationValue/isTruthy) | | 1.10.0 | | [`looseEquals(other)`](Value/looseEquals) | | <p> 1.10.0</p><p>(Inherited from [Value](Value)<!-- -->)</p> | | [`looseEquals(a, b)`](Value/looseEquals) | <code>static</code> | <p> 1.10.0</p><p>(Inherited from [Value](Value)<!-- -->)</p> | | [`parseFromString(input)`](DurationValue/parseFromString) | <code>static</code> | <p>Create a new DurationValue using an ISO 8601 duration. See [https://en.wikipedia.org/wiki/ISO\_8601\#Durations](https://en.wikipedia.org/wiki/ISO_8601#Durations) for duration format details.</p><p> 1.10.0</p> | | [`renderTo(el, ctx)`](Value/renderTo) | | <p>Render this value into the provided HTMLElement.</p><p> 1.10.0</p><p>(Inherited from [Value](Value)<!-- -->)</p> | | [`toString()`](DurationValue/toString) | | 1.10.0 |