Skip to content

Releases: arrow-py/arrow

Version 0.15.1

10 Sep 17:59
96e19e8
Compare
Choose a tag to compare
  • [FIX] Fixed a bug that caused Arrow to fail when passed a negative timestamp string.
  • [FIX] Fixed a bug that caused Arrow to fail when passed a datetime object with tzinfo of type StaticTzInfo.

Version 0.15.0

08 Sep 20:55
81927fa
Compare
Choose a tag to compare
  • [NEW] Added support for DDD and DDDD ordinal date tokens. The following functionality is now possible: arrow.get("1998-045"), arrow.get("1998-45", "YYYY-DDD"), arrow.get("1998-045", "YYYY-DDDD").
  • [NEW] ISO 8601 basic format for dates and times is now supported (e.g. YYYYMMDDTHHmmssZ).
  • [NEW] Added humanize week granularity translations for French, Russian and Swiss German locales.
  • [CHANGE] Timestamps of type str are no longer supported without a format string in the arrow.get() method. This change was made to support the ISO 8601 basic format and to address bugs such as #447.
# will NOT work in v0.15.0
arrow.get("1565358758")
arrow.get("1565358758.123413")

# will work in v0.15.0
arrow.get("1565358758", "X")
arrow.get("1565358758.123413", "X")
arrow.get(1565358758)
arrow.get(1565358758.123413)
  • [CHANGE] When a meridian token (a|A) is passed and no meridians are available for the specified locale (e.g. unsupported or untranslated) a ParserError is raised.
  • [CHANGE] The timestamp token (X) will now match float timestamps of type str: arrow.get(“1565358758.123415”, “X”).
  • [CHANGE] Strings with leading and/or trailing whitespace will no longer be parsed without a format string. Please see the docs for ways to handle this.
  • [FIX] The timestamp token (X) will now only match on strings that strictly contain integers and floats, preventing incorrect matches.
  • [FIX] Most instances of arrow.get() returning an incorrect Arrow object from a partial parsing match have been eliminated. The following issue have been addressed: #91, #196, #396, #434, #447, #456, #519, #538, #560.

Version 0.14.7

04 Sep 19:17
d4afda5
Compare
Choose a tag to compare
  • [CHANGE] ArrowParseWarning will no longer be printed on every call to arrow.get() with a datetime string. The purpose of the warning was to start a conversation about the upcoming 0.15.0 changes and we appreciate all the feedback that the community has given us!

Version 0.14.6

27 Aug 17:22
Compare
Choose a tag to compare
  • [NEW] Added support for week granularity in Arrow.humanize(). For example, arrow.utcnow().shift(weeks=-1).humanize(granularity="week") outputs "a week ago". This change introduced two new untranslated words, week and weeks, to all locale dictionaries, so locale contributions are welcome!
  • [NEW] Fully translated the Brazilian Portugese locale.
  • [CHANGE] Updated the Macedonian locale to inherit from a Slavic base.
  • [FIX] Fixed a bug that caused arrow.get() to ignore tzinfo arguments of type string (e.g. arrow.get(tzinfo="Europe/Paris")).
  • [FIX] Fixed a bug that occurred when arrow.Arrow() was instantiated with a pytz tzinfo object.
  • [FIX] Fixed a bug that caused Arrow to fail when passed a sub-second token, that when rounded, had a value greater than 999999 (e.g. arrow.get("2015-01-12T01:13:15.9999995")). Arrow should now accurately propagate the rounding for large sub-second tokens.

Version 0.14.5

09 Aug 17:20
905850a
Compare
Choose a tag to compare
  • Added Afrikaans locale.
  • Removed deprecated replace shift functionality.
  • Fixed bug that occurred when factory.get() was passed a locale kwarg. (#630 )

Version 0.14.4

30 Jul 22:16
Compare
Choose a tag to compare
  • Fixed a regression in 0.14.3 that prevented a tzinfo argument of type string to be passed to the get() function. Functionality such as arrow.get("2019072807", "YYYYMMDDHH", tzinfo="UTC") should work as normal again.
  • Moved backports.functools_lru_cache dependency from extra_requires to install_requires for Python 2.7 installs to fix #495.

Version 0.14.3

28 Jul 19:08
de94469
Compare
Choose a tag to compare
  • Added full support for Python 3.8.
  • Added warnings for upcoming factory.get() parsing changes in 0.15.0. Please see #612 for full details.
  • Extensive refactor and update of documentation.
  • factory.get() can now construct from kwargs.
  • Added meridians to Spanish Locale.

Version 0.14.2

06 Jun 10:59
Compare
Choose a tag to compare
  • Make Travis CI builds use tox to lint and run tests.
  • Fix UnicodeDecodeError on certain locales (#600).

Version 0.14.1

06 Jun 10:58
Compare
Choose a tag to compare
  • Fix "ImportError: No module named 'dateutil'" (#598).

Version 0.14.0

06 Jun 10:54
Compare
Choose a tag to compare
  • Add provisional support for Python 3.8.
  • Remove support for EOL Python 3.4.
  • Update setup.py with modern Python standards.
  • Upgrade dependencies to latest versions.
  • Enable flake8 and black on travis builds.
  • Reformat code using black and isort.