core.moduleapi: Add :get_option_period for parsing time intervals

E.g. for use in mod_mam and others that take an amount of time before
some (usually cleanup) action is taken.
This commit is contained in:
Kim Alvefur 2023-07-16 19:49:12 +02:00
parent 924064a30a
commit 3c4dc9a754
4 changed files with 18 additions and 0 deletions

View file

@ -42,6 +42,7 @@ TRUNK
- Config interface API can require that string values be picked from a provided set
- Acceptable interval can be specified for number options
- Method for parsing time periods / intervals from config
## Changes