File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 11Changelog
22=========
33
4+ 1.2.1 (2021-10-24)
5+ ------------------
6+
7+ - [NEW] Added quarter granularity to humanize, for example:
8+
9+ .. code-block :: python
10+
11+ >> > import arrow
12+ >> > now = arrow.now()
13+ >> > four_month_shift = now.shift(months = 4 )
14+ >> > now.humanize(four_month_shift, granularity = " quarter" )
15+ ' a quarter ago'
16+ >> > four_month_shift.humanize(now, granularity = " quarter" )
17+ ' in a quarter'
18+ >> > thirteen_month_shift = now.shift(months = 13 )
19+ >> > thirteen_month_shift.humanize(now, granularity = " quarter" )
20+ ' in 4 quarters'
21+ >> > now.humanize(thirteen_month_shift, granularity = " quarter" )
22+ ' 4 quarters ago'
23+
24+ - [NEW] Added Sinhala and Urdu locales.
25+ - [NEW] Added official support for Python 3.10.
26+ - [CHANGED] Updated Azerbaijani, Hebrew, and Serbian locales and added tests.
27+ - [CHANGED] Passing an empty granularity list to ``humanize `` now raises a ``ValueError ``.
28+
4291.2.0 (2021-09-12)
530------------------
631
Original file line number Diff line number Diff line change 1- __version__ = "1.2.0 "
1+ __version__ = "1.2.1 "
You can’t perform that action at this time.
0 commit comments