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.