Releases: python-pendulum/pendulum
Releases · python-pendulum/pendulum
0.6.0
Added
- Adds an option to control transition normalization behavior.
- Adds a separator keyword argument to
Interval.in_words()method. - Adds an alternative formatter.
- Adds support for pretty much any
tzinfoinstance in theinstance()method. - Adds an
intersect()method to thePeriodclass.
Changed
- Improves meridians formatting by supporting minutes.
- Changes behavior of
create*()methods (time now defaults to00:00:00)
Fixed
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5
This version introduces a new timezone library which improves
timezone switching and behavior around DST transition times.
- Adds a new timezone library to properly normalize and localize datetimes.
Pendulumno longer relies onpytz.
Check the Documentation to see what has changed exactly.
0.4
This version mostly brings the new Period class and improves performances overall.
- Adds the
Periodclass, which basically is a datetime-aware interval. - Makes the
format()method support alocalekeyword argument. - Changes custom directives.
%Pbecomes%_zand%tbecomes%_t.
Basically, all new custom directives will be in the form%_{directive} - Fixes singular for negative values of intervals.
0.3.1
0.3
This version causes major breaking API changes to simplify it and making it more intuitive.
- Improves testing by providing a
test()contextmanager. - Makes passing a naive
datetimetoinstance()default toUTC. - Reduces
add_xxx()/sub_xxx()methods toadd(**kwargs)/subtract(**kwargs). - Changes the
for_humans()method of theIntervalclass toin_words()to avoid confusion with thediff_for_humans()method. - Makes more constants and methods available at module level.
- Makes the constructor behave like the standard one. No more
Pendulum(). - Fixes "sl" locale.
- Renames the
to()method toin_timezone(). - Removes the comparison methods to just stick with the basic operators.
- Reduces
first_of_xxx()/last_of_xxx()/nth_of_xxx()methods tofirst_of(unit)/last_of(unit)/nth_of(unit, nth). - Reduces
start_of_xxx()/end_of_xxx()methods tostart_of(unit)/end_of(unit). - Removes the
diff_in_xxx()methods from thePendulumand addsin_xxx()methods to theIntervalclass. - Renames the
PendulumIntervalclass to simplyInterval. - Makes the
Pendulumclass immutable.