Skip to main content

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.

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