Adds interval of time to an ISO8601 timestamp.
Interval units include: years
, months
, weeks
, days
, hours
, minutes
, seconds
, milliseconds
Input
{{ node.createdTime | time_plus: 1, "years"}}
Output
2022-06-01T10:50:00.000Z
The time_plus
filter can be applied multiple times
Input
{{ "2021-06-01T10:50:00.000Z" | time_plus: 1, "years" | time_plus: 2, "days"}}
Output
2022-06-03T10:50:00.000Z
Format the timestamp by applying the time filter last
Input
{{ "2021-06-01T10:50:00.000Z" | time_plus: 1, "years" | time: "MMMM YYYY"}}
Output
June 2022