Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

parse_time_with_zone function:

Parse a date/time from a string into seconds since epoc. This version expect to get the time zone as well The first argument should be the date The second argument should be the format as string See details in https://docs.rs/chrono/latest/chrono/format/strftime/index.html.

Examples:

  • running: (parse_time_with_zone "2023 Dec 3 13:51:55.360 +0500", "%Y %b %d %H:%M:%S%.3f %z") will give: 1701593515.36

  • running: (parse_time_with_zone " 3-Dec-2023 - 13:51:55.360", 122) will return nothing

  • running: (parse_time_with_zone {}, "%v - %T%.3f") will return nothing