arrow v1.2.2 Release Notes

Release Date: 2022-01-19 // 4 months ago
    • [NEW] Added Kazakh locale.
    • ๐Ÿ’… [FIX] The Belarusian, Bulgarian, Czech, Macedonian, Polish, Russian, Slovak and Ukrainian locales now support dehumanize.
    • ๐Ÿ›  [FIX] Minor bug fixes and improvements to ChineseCN, Indonesian, Norwegian, and Russian locales.
    • โœ… [FIX] Expanded testing for multiple locales.
    • ๐Ÿ“š [INTERNAL] Started using xelatex for pdf generation in documentation.
    • โœ… [INTERNAL] Split requirements file into requirements.txt, requirements-docs.txt and requirements-tests.txt.
    • ๐Ÿ‘• [INTERNAL] Added flake8-annotations package for type linting in pre-commit.

Previous changes from v1.2.1

    • [NEW] Added quarter granularity to humanize, for example:

    .. code-block:: python

    >>> import 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.