pub fn truncate_high_fields(&mut self, f: DateTimeField) {
        match f {
            DateTimeField::Year => {}
            DateTimeField::Month => self.months %= 12,
            DateTimeField::Day => self.months = 0,
            hms => {
                self.months = 0;
                self.duration %= hms.next_largest().nanos_multiplier() as i128
            }
        }
    }
/// Truncate the "head" of the interval, removing all time units greater than `f`.
Truncate the "head" of the interval, removing all time units greater than `f`.
Truncate the " head " of the interval removing all time units greater than ` f ` .
pub fn truncate_high_fields(&mut self, f: DateTimeField) {
        match f {
            DateTimeField::Year => {}
            DateTimeField::Month => self.months %= 12,
            DateTimeField::Day => self.months = 0,
            hms => {
                self.months = 0;
                self.duration %= hms.next_largest().nanos_multiplier() as i128
            }
        }
    }
pub fn truncate_high_fields ( & mut self , f : DateTimeField ) { match f { DateTimeField :: Year => { } DateTimeField :: Month => self . months %= 12 , DateTimeField :: Day => self . months = 0 , hms => { self . months = 0 ; self . duration %= hms . next_largest ( ) . nanos_multiplier ( ) as i128 } } }
Truncate the "head" of the interval, removing all time units greater than `f`.
Truncate the " head " of the interval removing all time units greater than ` f ` .
&mut self
f
DateTimeField
&mut self
f
DateTimeField