Pendulum v2.1.0 Release Notes

Release Date: 2020-03-07 // over 1 year ago
  • โž• Added

    • โž• Added better typing and PEP-561 compliance (#320).
    • Added the is_anniversary() method as an alias of is_birthday() (#298).

    ๐Ÿ”„ Changed

    • โฌ‡๏ธ Dropped support for Python 3.4.
    • is_utc() will now return True for any datetime with an offset of 0, similar to the behavior in the 1.* versions (#295)
    • Duration.in_words() will now return 0 milliseconds for empty durations.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed various issues with timezone transitions for some edge cases (#321, (#350)).
    • ๐Ÿ›  Fixed out of bound detection for nth_of("month") (#357).
    • ๐Ÿ›  Fixed an error where extra text was accepted in from_format() (#372).
    • ๐Ÿ›  Fixed a recursion error when adding time to a DateTime with a fixed timezone (#431).
    • ๐Ÿ›  Fixed errors where Period instances were not properly compared to other classes, especially timedelta instances (#427).
    • ๐Ÿ›  Fixed deprecation warnings due to internal regexps (#427).
    • ๐Ÿ›  Fixed an error where the test() helper would not unset the test instance when an exception was raised (#445).
    • Fixed an error where the week_of_month attribute was not returning the correct value (#446).
    • ๐Ÿ›  Fixed an error in the way the Z ISO-8601 UTC designator was not parsed as UTC (#448).


    • โž• Added the nl locale.
    • โž• Added the it locale.
    • โž• Added the id locale.
    • โž• Added the nb locale.
    • โž• Added the nn locale.