Macro esp_idf_svc::hal::sys::build_time::build_time_local
build_time_local!() { /* proc-macro */ }
Expand description
Build time in the local timescale.
It takes an optional strftime
date and time format string as input, and returns a string literal.
If the input is empty, it will return a string literal in
RFC 3339 date and time format,
e.g., "2021-05-29T06:55:50.418437046+00:00"
.
ยงExample
use build_time::build_time_local;
// Returns the local build timestamp in RFC3339 date and time format.
let build_time_rfc3339 = build_time_local!();
// Returns the local build timestamp in the specified format.
let build_time_formatted = build_time_local!("%Y-%m-%dT%H:%M:%S%.f%:z");