pub fn as_weeks(&self, inc_part: bool) -> i32 {
        self.as_days() / 7
            + if inc_part && (self.as_days() % 7 > 0) {
                1
            } else {
                0
            }
    }
/// Return the number of weeks that can fit in the `DateRange`.
/// If inc_part is false, part weeks will be discarded e.g. 13 days -> 1 week.
/// If inc_part is true, part weeks will count as an extra period e.g. 13 days -> 2 weeks.
Return the number of weeks that can fit in the `DateRange`.
If inc_part is false, part weeks will be discarded e.g.
Return the number of weeks that can fit in the ` DateRange ` . If inc_part is false part weeks will be discarded e . g .
pub fn as_weeks(&self, inc_part: bool) -> i32 {
        self.as_days() / 7
            + if inc_part && (self.as_days() % 7 > 0) {
                1
            } else {
                0
            }
    }
pub fn as_weeks ( & self , inc_part : bool ) -> i32 { self . as_days ( ) / 7 + if inc_part && ( self . as_days ( ) % 7 > 0 ) { 1 } else { 0 } }
Return the number of weeks that can fit in the `DateRange`.
Return the number of weeks that can fit in the ` DateRange ` .
&self
inc_part
bool
&self
inc_part
bool