-
-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
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
Duration division, multiplication and mod broken for month lengths. #799
Comments
@sdispater @Secrus I see two options here:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
When doing math on
Duration
objects, months are ignored. This is because it uses the_to_microseconds
method which ignores themonths
attribute.pendulum/src/pendulum/duration.py
Lines 356 to 357 in 3e3fec6
e.g. :
The text was updated successfully, but these errors were encountered: