Skip to main content

weekday_from_days

Function weekday_from_days 

Source
pub const fn weekday_from_days(days: i64) -> u8
Expand description

The ISO 8601 weekday (1 = Monday … 7 = Sunday) of a day count since 1970-01-01.

§Examples

assert_eq!(parse_net::date::weekday_from_days(0), 4); // a Thursday