Methods
days(amount) → {Milliseconds}
Adds given amount of days the the value
Parameters:
Name | Type | Description |
---|---|---|
amount |
number | days to add |
Returns:
- Type
- Milliseconds
hours(amount) → {Milliseconds}
Adds given amount of hours the the value
Parameters:
Name | Type | Description |
---|---|---|
amount |
number | hours to add |
Returns:
- Type
- Milliseconds
milliseconds(amount) → {Milliseconds}
Adds given amount of milliseconds the the value
Parameters:
Name | Type | Description |
---|---|---|
amount |
number | milliseconds to add |
Returns:
- Type
- Milliseconds
minutes(amount) → {Milliseconds}
Adds given amount of minutes the the value
Parameters:
Name | Type | Description |
---|---|---|
amount |
number | minutes to add |
Returns:
- Type
- Milliseconds
months(amount) → {Milliseconds}
Adds given amount of months the the value (month = 30 days)
Parameters:
Name | Type | Description |
---|---|---|
amount |
number | months to add |
Returns:
- Type
- Milliseconds
seconds(amount) → {Milliseconds}
Adds given amount of seconds the the value
Parameters:
Name | Type | Description |
---|---|---|
amount |
number | seconds to add |
Returns:
- Type
- Milliseconds
value() → {number}
Gets current value as number
Returns:
- Type
- number
weeks(amount) → {Milliseconds}
Adds given amount of weeks the the value (week = 7 days)
Parameters:
Name | Type | Description |
---|---|---|
amount |
number | weeks to add |
Returns:
- Type
- Milliseconds
years(amount) → {Milliseconds}
Adds given amount of years the the value (year = 365 days)
Parameters:
Name | Type | Description |
---|---|---|
amount |
number | years to add |
Returns:
- Type
- Milliseconds