Open yangbajing opened 5 months ago
https://github.com/rbatis/fastdate/blob/main/src/datetime.rs#L546-L553
pub fn set_nano(mut self, nano: u32) -> Self { let v = self.nano(); if nano != v { self = self.sub(Duration::from_nanos(v as u64)); self = self.add(Duration::from_micros(nano as u64)); } self }
这里在做 add 时是否应该是 self = self.add(Duration::from_nanos(nano as u64));
add
self = self.add(Duration::from_nanos(nano as u64));
https://github.com/rbatis/fastdate/blob/main/src/datetime.rs#L546-L553
这里在做
add
时是否应该是self = self.add(Duration::from_nanos(nano as u64));