Skip to main content

expiry_date_to_timestamp_checked

Function expiry_date_to_timestamp_checked 

pub fn expiry_date_to_timestamp_checked(
    underlying: &str,
    expiry: u64,
) -> Result<u64, ExpiryDateConversionError>
Expand description

Convert a YYYYMMDD expiry code to a Unix timestamp using the underlying’s configured expiry time of day (default 08:00 UTC).