Skip to main content

apply_age

Function apply_age 

Source
fn apply_age(
    expiry_time: JsOption<MilliSecondsSinceUnixEpoch>,
    current: Option<SystemTime>,
) -> Result<Option<SystemTime>>
Expand description

Fold the tri-state expiry_time over the stored expiry, converting a set millisecond timestamp into a SystemTime.