Skip to content

Bars Specification 0.1.0 — Transform: plus

Category: math · Since: 0.1.0

Adds an operand to the input.

Adds a numeric operand to the numeric input. Also accepts a date-time input: dateTime | plus: n shifts the date-time forward n days.

Input coercion: number

Arguments

Name Type Optional Default
operand number no

Arity: 1–1

Worked examples

{{ n | plus: 2 }}

7
{{ a | as_date_time: 'seconds' | plus: 1 }}

1970-01-02T00:00:00Z

Full fixture: transforms/transform-plus.json