time.add

TIMEtime.addTIMEt1TIMEt2

Available inall subroutines.

Adds a relative time to a time.

Example

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

User contributed notes

BETA

Do you see an error in this page? Do you have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact Fastly support)