is_expired

Function is_expired 

Source
pub fn is_expired(expires: Option<&str>) -> bool
Expand description

What: Check if an announcement has expired.

Inputs:

  • expires: Optional expiration date in ISO format (YYYY-MM-DD).

Output:

  • true if expired (date has passed), false if not expired or no expiration.

Details:

  • Parses ISO date format (YYYY-MM-DD).
  • Compares with today’s date (UTC).