pub unsafe extern "C" fn args_read_duration(
args: *mut FuriString,
value: *mut u32,
default_unit: *const c_char,
) -> boolExpand description
Parses a duration value from a given string and converts it to milliseconds
§Arguments
[in]- args the input string containing the duration value. The string may include units (e.g., “10s”, “0.5m”).[out]- value pointer to store the parsed value in milliseconds[in]- default_unit A default unit to be used if the input string does not contain a valid suffix. Supported units:"ms","s","m","h"If NULL, the function will assume milliseconds by default.
§Returns
true if the parsing and conversion succeeded, false otherwise.