Releases: python-pendulum/pendulum
Releases · python-pendulum/pendulum
1.0.0
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_TRANSITIONrule no longer produces a time in a DST gap.
- Improved performances when adding time to a Penduluminstance.
- Improved parsing of ISO 8601 strings.
- Removed deprecated methods
0.8.0
Added
- Added on()andat()methods which replacewith_date()andwith_time().
- Added a strictkeyword argument toparse()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 theTimezoneclass.
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
Added
- Added a Dateclass.
- Added a Timeclass.
- Added experimental support for the foldattribute introduced in Python 3.6.
- Added a remaining_daysproperty to theIntervalclass.
- Added a int_timestampproperty to thePendulumclass to retrieve the behavior of the now deprecatedtimestampproperty.
- start_of()/- end_of()now supports- hour,- minuteand- secondunits.
- astimezone()now supports timezone strings.
- in_words()now displays subseconds when no other units are available.
Changed
- Periodproperties (especially- yearsand- months) are now accurate.
- Interval.secondsnow returns the whole number of remaining seconds, like- timedelta, for compatibility. Use- remaining_secondsto 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
- timestampshould now be used as a method and no longer as a property. It will be a native method in the next major version.
- Intervalproperties and methods related to years and months are now deprecated.
- Interval.days_exclude_weeksis now deprecated. Use- remaining_daysinstead.
Fixed
- Exception when loading specific timezones has been fixed.
- end_of('day')now properly sets microseconds to- 999999.
- Accuracy of Periodinstances 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_()andmicrosecond_()setters changing the hour unit.
- Fixed Windows support.
0.6.6
0.6.5
Changed
- Adds validation to set_week_starts_at(),set_week_ends_at()andset_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
0.6.3
0.6.2
0.6.1
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)