---
title: time.add
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/functions/date-and-time/time-add
---

```
TIME time.add(TIME t1, TIME t2)
```

**Available in:** all subroutines

Adds a relative time to a time.

## Example

```vcl
declare local var.one_day_later TIME;
set var.one_day_later = time.add(now, 1d);
# var.one_day_later is now the same time tomorrow
```
