Version 1.2.1
- [NEW] Added quarter granularity to humanize, for example:
>>> import arrow
>>> now = arrow.now()
>>> four_month_shift = now.shift(months=4)
>>> now.humanize(four_month_shift, granularity="quarter")
'a quarter ago'
>>> four_month_shift.humanize(now, granularity="quarter")
'in a quarter'
>>> thirteen_month_shift = now.shift(months=13)
>>> thirteen_month_shift.humanize(now, granularity="quarter")
'in 4 quarters'
>>> now.humanize(thirteen_month_shift, granularity="quarter")
'4 quarters ago'
- [NEW] Added Sinhala and Urdu locales.
- [NEW] Added official support for Python 3.10.
- [CHANGED] Updated Azerbaijani, Hebrew, and Serbian locales and added tests.
- [CHANGED] Passing an empty granularity list to
humanize
now raises aValueError
.
Commits since last release
- Fixing plural of years and days in Hebrew by @guyernest in #1042
- add Sinhala locale by @ChingYi-AX in #1044
- Fix pypy CI issues and begin testing against Python 3.10 by @jadchaar in #1045
- add Urdu locale by @cyriaka90 in #1046
- Add support for Python 3.10 by @jadchaar in #1049
- Update dependencies for Python 3.10 by @jadchaar in #1050
- Corrections in Serbian locale by @smarkovic in #1047
- Fix typos by @kianmeng in #1051
- Declare support for Python 3.10 by @hugovk in #1053
- Issue 985 -- Add Azerbaijani second time frame by @sania-dsouza in #1052
- Add quarter granularity by @Alig1493 in #1048
- Added Error Checking For Empty Granularity List by @anishnya in #1016
- Bump version to 1.2.1 and update CHANGELOG by @jadchaar in #1055
New Contributors
- @guyernest made their first contribution in #1042
- @smarkovic made their first contribution in #1047
- @kianmeng made their first contribution in #1051
- @sania-dsouza made their first contribution in #1052
- @Alig1493 made their first contribution in #1048
Full Diff: 1.2.0...1.2.1