#878 moduleapi get_option variant for time ranges

Reporter Zash
Owner Nobody
Created
Updated
Stars ★ (1)  
Tags
  • Status-Accepted
  • Type-Enhancement
  • Priority-Medium
  • Difficulty-Easy
  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.

  2. Zash on

    Changes
    • tags Difficulty-Easy

New comment