macro_rules! datetime {
( $year:literal-$month:literal-$day:literal $(T)? $hour:literal:$min:literal:$second:literal Z) => { ... };
( $year:literal-$month:literal-$day:literal $(T)? $hour:literal:$min:literal:$second:literal) => { ... };
}Expand description
Declarative macro to create a chrono::DateTime<chrono::Utc> suitable
for const evaluation, as this is otherwise cumbersome.
Usage:
let datetime: DateTime<Utc> = datetime!( 2024-12-24 15:00:00 Z);