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

format_time function:

Format a date/time into a string The first argument should be the number of seconds since epoch The second argument should be the format as string See details in https://docs.rs/chrono/latest/chrono/format/strftime/index.html.

Examples:

  • running: (format_time 1701611515.3603675, 122) will return nothing

  • running: (format_time {}, "%a %b %e %T %Y - %H:%M:%S%.f") will return nothing

  • running: (format_time 1701611515.3603675, "%a %b %e %T %Y - %H:%M:%S%.f") will give: "Sun Dec 3 13:51:55 2023 - 13:51:55.360367536"