pub fn expiry_timestring_to_unix_nanos(
expiry: &str,
details: Option<&ContractDetails>,
) -> Result<UnixNanos>Expand description
Convert timestamp string to UnixNanos.
Handles formats like “20230101” or “20230101 00:00:00 UTC”. A date alone takes its time
from the last_trade_time of details if it holds one, otherwise from its trading session.
A time without a zone is in the contract’s time_zone_id, or in UTC if that is empty.
§Errors
Returns an error if the timestamp cannot be parsed.