Description of feature:
A config API method like eg module:get_option_time_range(name, default) for time spans, which would take a number or a string like "5 minutes" or "3 weeks" and converts it to seconds.
This could help reduce inconsistency and duplication for modules that take such options.
Description of feature: A config API method like eg module:get_option_time_range(name, default) for time spans, which would take a number or a string like "5 minutes" or "3 weeks" and converts it to seconds. This could help reduce inconsistency and duplication for modules that take such options.