Hello
Is it possible to use the function timestamp to get a date in the past or in the future ?
Do you have any code ?
thanks
You can use the timeadd
function:
$ terraform console
> timeadd(timestamp(), "-1h")
2020-08-20T14:50:33Z
> timeadd(timestamp(), "15m")
2020-08-20T16:05:38Z
Depending on what you’re trying to do, the time
provider may also be of interest.
1 Like
Thanks …