Skip to content

Version 1.2.1

Compare
Choose a tag to compare
@jadchaar jadchaar released this 24 Oct 22:20
· 90 commits to master since this release
3e50ae4
  • [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 a ValueError.

Commits since last release

New Contributors

Full Diff: 1.2.0...1.2.1