datetime_str!() { /* proc-macro */ }Expand description
Compile time as &'static str in yyyy-MM-ddThh:mm:ssZ format.
ยงExample
const COMPILE_DATE_STRING: &str = compile_time::date_str!();
const COMPILE_TIME_STRING: &str = compile_time::time_str!();
let datetime_string = format!("{COMPILE_DATE_STRING}T{COMPILE_TIME_STRING}Z");
assert_eq!(compile_time::datetime_str!(), datetime_string);