Skip to content

Latest commit

 

History

History
185 lines (109 loc) · 5.4 KB

CHANGELOG.md

File metadata and controls

185 lines (109 loc) · 5.4 KB

Change Log

0.6.0 - 2016-09-12

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 tzinfo instance in the instance() method.
  • Adds an intersect() method to the Period class.

Changed

  • Improves meridians formatting by supporting minutes.
  • Changes behavior of create*() methods (time now defaults to 00:00:00)

Fixed

  • Fixes setters and modifiers (start_of/end_of) to properly apply transitions.
  • Fixes issue when compiling on 32 bit systems. (Thanks to guyzmo)
  • Fixes NameError Exception on Python 3.2. (Thanks to guyzmo)
  • Fixes absolute intervals.

0.5.5 - 2016-09-01

Fixed

  • Fixes local timezone loading for unix systems.
  • Fixes potential AttributeError in between method. (Thanks to iv597)

0.5.4 - 2016-08-30

Fixed

  • Fixes broken previous release.

0.5.3 - 2016-08-29

Fixed

  • Fixes setters and modifiers (start_of/end_of) to properly apply DST transitions.
  • Fixes timezone file loading on some installs (See #34) (Thanks to mayfield)

0.5.2 - 2016-08-22

Added

  • Adds a small speedup when changing timezones.

Changed

  • Makes .offset_hours return a float.

Fixed

  • Fixes TimezoneInfo.utcoffset() method.
  • Fixes arithmetic operations on intervals not returning intervals.
  • Allows Pendulum instances comparison to None . (Thanks to jkeyes)

0.5.1 - 2016-08-18

Fixed

  • Fixes now() not behaving properly when given a timezone.
  • Fixes double file opening when getting local timezone. (Thanks to yggdr)
  • Fixes pt_BR locale. (Thanks to YomoFuno)
  • Fixes pl locale. (Thanks to MichalTHEDUDE)

0.5 - 2016-08-15

This version introduces a new timezone library which improves timezone switching and behavior around DST transition times.

Added

  • Adds a new timezone library to properly normalize and localize datetimes. Pendulum no longer relies on pytz. Check the Documentation to see what has changed exactly.

0.4 - 2016-07-26

This version mostly brings the new Period class and improves performances overall.

Added

  • Adds the Period class, which basically is a datetime-aware interval.

Changed

  • Makes the format() method support a locale keyword argument.
  • Changes custom directives. %P becomes %_z and %t becomes %_t. Basically, all new custom directives will be in the form %_{directive}.

Fixed

  • Fixes singular for negative values of intervals.

0.3.1 - 2016-07-13

Fixed

  • Fixes parsing of string with partial offset.

0.3 - 2016-07-11

This version causes major breaking API changes to simplify it and making it more intuitive.

Added

  • Improves testing by providing a test() contextmanager.

Changed

  • Makes passing a naive datetime to instance() default to UTC.
  • Reduces add_xxx()/sub_xxx() methods to add(**kwargs)/subtract(**kwargs).
  • Changes the for_humans() method of the Interval class to in_words() to avoid confusion with the diff_for_humans() method.
  • Makes more constants and methods available at module level.
  • Makes the constructor behave like the standard one. No more Pendulum().
  • Renames the to() method to in_timezone().
  • Removes the comparison methods to just stick with the basic operators.
  • Reduces first_of_xxx()/last_of_xxx()/nth_of_xxx() methods to first_of(unit)/last_of(unit)/nth_of(unit, nth).
  • Reduces start_of_xxx()/end_of_xxx() methods to start_of(unit)/end_of(unit).
  • Removes the diff_in_xxx() methods from the Pendulum and adds in_xxx() methods to the Interval class.
  • Renames the PendulumInterval class to simply Interval.
  • Makes the Pendulum class immutable.

Fixed

  • Fixes "sl" locale.

0.2 - 2016-07-04

Changed

  • Makes the Pendulum class truly inherits from datetime.

0.1.1 - 2016-07-04

Added

  • Adds support for the TZ environment variable.
  • Adds closest()/farthest() comparison methods.
  • Adds min/max attributes. Renames min/max methods.

Changed

  • Makes set_test_now() available at module level.

Fixed

  • Fixes diff_for_humans() method when setting locale.

0.1 - 2016-07-04

Initial release