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
Hi @BurntSushi.
I noticed that month method is defined as:
month
#[inline] pub fn month(&self) -> i8 { self.date().month() }
I wonder if it's possible month is negative or out of 1..=12?
1..=12
The text was updated successfully, but these errors were encountered:
No, it isn't possible. We should add that guarantee to the docs. And for other similar methods like day.
day
But it is mentioned in the constructor for civil::Date: https://docs.rs/jiff/latest/jiff/civil/struct.Date.html#method.new
civil::Date
Sorry, something went wrong.
No branches or pull requests
Hi @BurntSushi.
I noticed that
month
method is defined as:I wonder if it's possible month is negative or out of
1..=12
?The text was updated successfully, but these errors were encountered: