date!() { /* proc-macro */ }Expand description
Compile date as time::Date.
ยงExample
const COMPILE_DATE: time::Date = compile_time::date!();
let year = COMPILE_DATE.year();
let month = COMPILE_DATE.month();
let day = COMPILE_DATE.day();
println!("Compiled on {month} {day}, {year}.");