Skip to content

Releases: python-pendulum/pendulum

1.0.1

Choose a tag to compare

@sdispater sdispater released this 25 Jan 21:34
1.0.1
f30bd40

Fixed

  • Fixed parsing, especially for strings in the form 31-01-01.

1.0.0

Choose a tag to compare

@sdispater sdispater released this 17 Jan 19:21
1.0.0
b18a35e

After more than 300 commits and 21 beta releases, pendulum finally reaches its first stable version.

What does that mean? Well, the API is now stable, so no backwards compatibility breaking changes will be introduced in any 1.x releases (pendulum will follow Semantic Versioning).

Changed

  • Using PRE_TRANSITION rule no longer produces a time in a DST gap.
  • Improved performances when adding time to a Pendulum instance.
  • Improved parsing of ISO 8601 strings.
  • Removed deprecated methods

0.8.0

Choose a tag to compare

@sdispater sdispater released this 17 Jan 15:26
0.8.0
b44a5ac

Added

  • Added on() and at() methods which replace with_date() and with_time().
  • Added a strict keyword argument to parse() to get the type matching the parsed string.
  • Added the ability to pass an amount to the range() method to control the length of the gap.
  • Added a datetime() helper method to the Timezone class.

Changed

  • Improved parsing of ISO 8601 strings.

Deprecated

  • with_date() and with_time() are deprecated. Use on() and at() instead.
  • create_from_date() and create_from_time() are deprecated. Use create() instead.

0.7.0

Choose a tag to compare

@sdispater sdispater released this 07 Dec 16:46
0.7.0
20e7655

Added

  • Added a Date class.
  • Added a Time class.
  • Added experimental support for the fold attribute introduced in Python 3.6.
  • Added a remaining_days property to the Interval class.
  • Added a int_timestamp property to the Pendulum class to retrieve the behavior of the now deprecated timestamp property.
  • start_of()/end_of() now supports hour, minute and second units.
  • astimezone() now supports timezone strings.
  • in_words() now displays subseconds when no other units are available.

Changed

  • Period properties (especially years and months) are now accurate.
  • Interval.seconds now returns the whole number of remaining seconds, like timedelta, for compatibility. Use remaining_seconds to retrieve the previous behavior.
  • Improved parsing performances for common formats.
  • The library no longer relies on pytz. It now depends on pytzdata for its timezone database.
  • Locale, test instance and formatter are now set gobally at the module level when using the corresponding module methods.

Deprecated

  • timestamp should now be used as a method and no longer as a property. It will be a native method in the next major version.
  • Interval properties and methods related to years and months are now deprecated.
  • Interval.days_exclude_weeks is now deprecated. Use remaining_days instead.

Fixed

  • Exception when loading specific timezones has been fixed.
  • end_of('day') now properly sets microseconds to 999999.
  • Accuracy of Period instances properties has been improved.
  • Accuracy for microseconds when initializing a Pendulum instance in some timezones has been fixed.
  • Periods are now serializable with pickle.
  • Fixed minute_(), second_() and microsecond_() setters changing the hour unit.
  • Fixed Windows support.

0.6.6

Choose a tag to compare

@sdispater sdispater released this 25 Nov 21:55
0.6.6
95fd48e

Fixed

  • Fixed a memory leak in C extension. (thanks to ntoll)

0.6.5

Choose a tag to compare

@sdispater sdispater released this 31 Oct 18:01
0.6.5
a4d3716

Changed

  • Adds validation to set_week_starts_at(), set_week_ends_at() and set_weekend_days(). (thanks to kleschenko)
  • Updates ukrainian localization. (thanks to kleschenko)

Fixed

  • Fixes loading of timezones without transitions.
  • Fixes Timezone.utcoffset(). (thanks to regnarock)

0.6.4

Choose a tag to compare

@sdispater sdispater released this 22 Oct 23:55
0.6.4
9867485

Changed

  • Adds support for pytz timezones in constructor.

Fixed

  • Fixes behavior of add()/subtract() methods for years, months and days when a DST transition occurs.
  • Fixes range() behavior.

0.6.3

Choose a tag to compare

@sdispater sdispater released this 19 Oct 22:06
0.6.3
d90aa23

Changed

  • Makes replace() accept the same tzinfo types as the constructor.

Fixed

  • Fixes timezone_() not setting the tzinfo properly.
  • Fixes pickling/unpickling of Pendulum instances with fixed timezone.

0.6.2

Choose a tag to compare

@sdispater sdispater released this 26 Sep 22:28
0.6.2
f589b3c

Fixed

  • Fixes timezones loading on Windows

0.6.1

Choose a tag to compare

@sdispater sdispater released this 19 Sep 17:39
0.6.1
73a7a26

Changed

  • Pendulum instances can no longer be compared to strings and integers.

Fixed

  • Fixes Timezone._convert() method for fixed timezones.
  • Fixes instances() for some tzinfo.
  • Fixes comparisons to incompatible objects raising an error.