#878 moduleapi get_option variant for time ranges

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

    • tags Difficulty-Easy

New comment

Not published. Used for spam prevention and optional update notifications.