#878 moduleapi get_option variant for time ranges

Reporter Zash
Owner Nobody
Stars ★ (1)  
  • Type-Enhancement
  • Priority-Medium
  • Status-Accepted
  1. Zash on

    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.

New comment