format_time function:

Format a date/time into a string The first argemnt should be the number of seconds since epoch The second argemnt 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"