We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/rbatis/fastdate/blob/main/src/datetime.rs#L546-L553
这里在做
add
时是否应该是self = self.add(Duration::from_nanos(nano as u64));
The text was updated successfully, but these errors were encountered: