All Versions
13
Latest Version
Avg Release Cycle
71 days
Latest Release
1516 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v2.1.2 Changes
July 24, 2020 -
v2.1.1 Changes
July 13, 2020๐ Fixed
- ๐ Fixed errors where invalid timezones were matched in
from_format()
(#374). - ๐ Fixed errors when subtracting negative timedeltas (#419).
- ๐ Fixed errors in total units computation for durations with years and months (#482).
- ๐ Fixed an error where the
fold
attribute was overridden when usingreplace()
(#414). - ๐ Fixed an error where
now()
was not returning the correct result on DST transitions (#483). - ๐ Fixed inconsistent typing annotation for the
parse()
function (#452).
Locales
- โ Added the
pl
locale (#459).
- ๐ Fixed errors where invalid timezones were matched in
-
v2.1.0 Changes
March 07, 2020โ Added
- โ Added better typing and PEP-561 compliance (#320).
- Added the
is_anniversary()
method as an alias ofis_birthday()
(#298).
๐ Changed
- โฌ๏ธ Dropped support for Python 3.4.
is_utc()
will now returnTrue
for any datetime with an offset of 0, similar to the behavior in the1.*
versions (#295)Duration.in_words()
will now return0 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, especiallytimedelta
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).
Locales
- โ Added the
nl
locale. - โ Added the
it
locale. - โ Added the
id
locale. - โ Added the
nb
locale. - โ Added the
nn
locale.
-
v2.0.5 Changes
July 03, 2019๐ Fixed
- ๐ Fixed ISO week dates not being parsed properly in
from_format()
. - ๐ Fixed loading of some timezones with empty posix spec.
- ๐ Fixed deprecation warnings.
Locales
- โ Added RU locale.
- ๐ Fixed ISO week dates not being parsed properly in
-
v2.0.4 Changes
October 30, 2018๐ Fixed
- ๐ Fixed
from_format()
not recognizing input strings when the specified pattern had escaped elements. - ๐ Fixed missing
x
token for string formatting. - ๐ Fixed reading timezone files.
- โ Added support for parsing padded 2-digit days of the month with
from_format()
- ๐ Fixed
from_format()
trying to parse escaped tokens. - ๐ Fixed the
z
token timezone parsing infrom_format()
to allow underscores. - ๐ Fixed C extensions build errors.
- ๐ Fixed
age
calculation for future dates.
- ๐ Fixed
-
v2.0.3 Changes
July 30, 2018๐ Fixed
- ๐ Fixed handling of
pytz
timezones. - ๐ Fixed some formatter's tokens handling.
- ๐ Fixed errors on some systems when retrieving timezone from localtime files.
- ๐ Fixed
diff
methods. - ๐ Fixed
closest()/farthest()
methods.
- ๐ Fixed handling of
-
v2.0.2 Changes
May 29, 2018๐ Fixed
- ๐ Fixed the
weeks
property for negativePeriod
instances. - ๐ Fixed
start_of()
methods not setting microseconds to 0. - ๐ Fixed errors on some systems when retrieving timezone from clock files.
- ๐ Fixed parsing of partial time.
- ๐ Fixed parsing not raising an error for week 53 for ordinary years.
- ๐ Fixed string formatting not supporting
strftime
format.
- ๐ Fixed the
-
v2.0.1 Changes
May 10, 2018๐ Fixed
- ๐ Fixed behavior of the
YY
token infrom_format()
. - ๐ Fixed errors on some systems when retrieving timezone from clock files.
- ๐ Fixed behavior of the
-
v2.0.0 Changes
May 08, 2018โ Added
- โ Added years and months support to durations.
- Added the
test_local_timezone()
andset_local_timezone()
helpers to ease testing. - โ Added support of ISO 8601 duration parsing.
- โ Added support of ISO 8601 interval parsing.
- โ Added a
local()
helper. - โ Added a
naive()
helper and anaive()
method. - โ Added support for POSIX specification to extend timezones DST transitions.
๐ Changed
Pendulum
class has been renamed toDateTime
.Interval
class has been renamed toDuration
.- ๐ Changed and improved the timezone system.
- โ Removed the
create()
helper. - โ Removed the
utcnow()
helper. - ๐
strict
keyword argument forparse
has been renamed toexact
. - ๐
at()
now supports setting partial time. local
,utc
andis_dst
are now methods rather than properties (is_local()
,is_utc()
,is_dst()
).- ๐ Changed the
repr
of most common objects. - 0๏ธโฃ Made the
strict
keyword argument forparse
false by default, which means it will not fallback on thedateutil
parser. - ๐ Improved performances of the
precise_diff()
helper. - 0๏ธโฃ The
alternative
formatter is now the default one. set_to_string_format()/reset_to_string_format()
methods have been removed.from_format()
now uses the alternative formatter tokens.- โ Removed
xrange()
method of thePeriod
class and maderange()
a generator. - ๐ New locale system which uses CLDR data for most of the translations.
diff_for_humans()
now returnsa few seconds
where appropriate.- โ Removed
Period.intersect()
.
๐ [Unreleased]: https://github.com/sdispater/pendulum/compare/2.1.1...master ๐ [2.1.1]: https://github.com/sdispater/pendulum/releases/tag/2.1.1 ๐ [2.1.0]: https://github.com/sdispater/pendulum/releases/tag/2.1.0 ๐ [2.0.5]: https://github.com/sdispater/pendulum/releases/tag/2.0.5 ๐ [2.0.4]: https://github.com/sdispater/pendulum/releases/tag/2.0.4 ๐ [2.0.3]: https://github.com/sdispater/pendulum/releases/tag/2.0.3 ๐ [2.0.2]: https://github.com/sdispater/pendulum/releases/tag/2.0.2 ๐ [2.0.1]: https://github.com/sdispater/pendulum/releases/tag/2.0.1 ๐ [2.0.0]: https://github.com/sdispater/pendulum/releases/tag/2.0.0
-
v1.5.1 Changes
April 25, 2018- ๐ Fixed
set()
not acception thetz
keyword argument. - ๐ Fixed
datetime()
not setting the timezone toUTC
by default.
- ๐ Fixed