pub fn validate_and_prepare_time_alert(
name: &str,
alert_time_ns: UnixNanos,
allow_past: Option<bool>,
ts_now: UnixNanos,
) -> Result<(Ustr, UnixNanos)>Expand description
Validates and prepares parameters for setting a time alert.
Handles name validation, default value unwrapping, and past timestamp adjustment.
ยงErrors
Returns an error if the name is invalid or if the alert time is in the past when not allowed.