plus
plus subtracts a number from each number in the input set. If the operand is a set of numbers, then the average of the set is added to each number in the input set.
| Context | Type |
|---|---|
| Input | collection of numbers |
| Output | collection of numbers |
| Parameter | Type |
|---|---|
| operand | number or collection of numbers |
Examples
Add 100 milliseconds to the current time:
now().plus(100)
Notes
Since plus is often used with times, it understands the following named parameters:
- s, second, seconds
- m, minute, minutes
- ms millisecond milliseconds, millis
- h, hr, hour, hours
For example:
now().plus(min=30, seconds=10)