Skip to main content

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.

ContextType
Inputcollection of numbers
Outputcollection of numbers
ParameterType
operandnumber 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)