Available in all subroutines.

Parses a string representing a time delta. This function supports the specifiers d and D for days, h and H for hours, m and M for minutes, and s and S for seconds. The function parses individual deltas. Strings like "10d11h3m2s" are not supported.

This function is not prefixed with the std. namespace.


set beresp.ttl = parse_time_delta(beresp.http.Edge-Control:cache-maxage);

User contributed notes

We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.