fn weekday_index(dt: &DateTime<Utc>) -> usizeExpand description
Converts a chrono::DateTime<Utc> object’s weekday to a 0-indexed integer.
This function maps chrono::Weekday values (where Monday is 1, Sunday is 7)
to a 0-indexed system (Monday = 0, Sunday = 6).
§Arguments
dt: A reference to aDateTime<Utc>object.
§Returns
A usize representing the weekday index (0 for Monday, …, 6 for Sunday).