Skip to main content

expires_within_warning

Function expires_within_warning 

Source
pub fn expires_within_warning(
    expiry: OffsetDateTime,
    now: OffsetDateTime,
) -> bool
Expand description

Whether expiry falls within EXPIRY_WARNING of now (or has passed); an out-of-range difference counts as within.