minus
minus
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 subtracted from 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
Subtract 100 milliseconds from the current time:
now().minus(100)
Notes
Since minus
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().minus(min=30, seconds=10)