You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to provide more precision than "months" when the timedelta is more than 1 month, but I'm finding some issues using precisedelta set to days with a format of %d as seen below. This all seems to stem from the use of 30.5 as a divisor for mod in precisedelta and how it and ngettext interact with floats vs. ints when it comes to pluralize and the display of the days itself. For what it's worth, the same thing happens at second precision with microseconds present, etc. It seems to be at the minimum_unit where this logic takes place.
What did you do?
I'm trying to provide more precision than "months" when the
timedelta
is more than 1 month, but I'm finding some issues usingprecisedelta
set todays
with a format of%d
as seen below. This all seems to stem from the use of 30.5 as a divisor for mod inprecisedelta
and how it andngettext
interact with floats vs. ints when it comes to pluralize and the display of the days itself. For what it's worth, the same thing happens at second precision with microseconds present, etc. It seems to be at theminimum_unit
where this logic takes place.What did you expect to happen?
What actually happened?
What versions are you using?
Please include code that reproduces the issue (included in expected, actually happened above)
The text was updated successfully, but these errors were encountered: