addMinutes

Full name: taxi.stdlib.dates.addMinutes

Signature

declare function <T> addMinutes(T, Int):T

Description

Adds the specified number of minutes to a datetime or instant. Use a negative value to subtract minutes.

// Schedule a meeting 30 minutes from the event start
find {
   meetingEnd: DateTime = addMinutes(DateTime, 30)
}

Examples

Adds minutes to a datetime — positive to advance, negative to go back.

Try it out

Schema
Query Plan
Play with this snippet by editing it here, or edit it on Taxi Playground
Result
Query failed
Next
Welcome to Taxi