Searched refs:num_days_from_sunday (Results 1 – 3 of 3) sorted by relevance
462 (d.ordinal() as i32 - d.weekday().num_days_from_sunday() as i32 + 7) / 7 in format_inner()480 NumDaysFromSun => (1, date.map(|d| i64::from(d.weekday().num_days_from_sunday()))), in format_inner()560 .push_str(short_weekdays[d.weekday().num_days_from_sunday() as usize]); in format_inner()564 result.push_str(long_weekdays[d.weekday().num_days_from_sunday() as usize]); in format_inner()648 short_weekdays[d.weekday().num_days_from_sunday() as usize], in format_inner()
412 let week_from_sun = (ordinal as i32 - weekday.num_days_from_sunday() as i32 + 7) / 7; in to_naive_date()458 + weekday.num_days_from_sunday() as i32; in to_naive_date()
760 pub fn num_days_from_sunday(&self) -> u32 { in num_days_from_sunday() method