# addMinutes

Source: https://taxilang.org/docs/language/stdlib/addMinutes

**Full name:** `taxi.stdlib.dates.addMinutes`

## Signature

```taxi
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.

```taxi
// 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.

Query:

```taxi
given {
   start: DateTime = parseDate("2024-01-15T10:30:00")
}
find {
   @Format("yyyy-MM-dd HH:mm")
   plusFive: DateTime = addMinutes(DateTime, 5)
   @Format("yyyy-MM-dd HH:mm")
   minusTwo: DateTime = addMinutes(DateTime, -120)
}
```

Result:

```json
{
  "plusFive": "2024-01-15 10:35",
  "minusTwo": "2024-01-15 08:30"
}
```
