Commit e54c8aae authored by Federico G. Schwindt's avatar Federico G. Schwindt

Document y (years) time unit

parent a318399f
......@@ -113,7 +113,7 @@ $Function DURATION duration(STRING, DURATION)
Description
Converts the string *s* to seconds. *s* must be quantified
with ms (milliseconds), s (seconds), m (minutes), h (hours),
d (days) or w (weeks) units. If *s* fails to parse,
d (days), w (weeks) or y (years) units. If *s* fails to parse,
*fallback* will be returned.
Example
set beresp.ttl = std.duration("1w", 3600s);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment