Skip to main content

parse_execution_time

Function parse_execution_time 

Source
pub fn parse_execution_time(time_str: &str) -> Result<UnixNanos>
Expand description

Parse execution time string to UnixNanos.

Parse IB execution time to UnixNanos.

Supported IB formats:

  • “20230223 00:43:36 Universal”
  • “20230223 00:43:36 UTC”
  • “20230223 00:43:36” (assumed UTC)
  • “20250225-15:15:00” (assumed UTC)

§Arguments

  • time_str - The execution time string from IB

§Errors

Returns an error if the execution timestamp is malformed or uses a non-UTC timezone.