- Fixed ISO week dates not being parsed properly in
fom_format().
2.0.4 - 2018-10-30
- Fixed
from_format()not recognizing input strings when the specified pattern had escaped elements. - Fixed missing
xtoken for string formatting. - Fixed reading timezone files.
- Added support for parsing padded 2-digit days of the month with
from_format() - Fixed
from_format()trying to parse escaped tokens. - Fixed the
ztoken timezone parsing infrom_format()to allow underscores. - Fixed C extensions build errors.
- Fixed
agecalculation for future dates.
2.0.3 - 2018-07-30
- Fixed handling of
pytztimezones. - Fixed some formatter's tokens handling.
- Fixed errors on some systems when retrieving timezone from localtime files.
- Fixed
diffmethods. - Fixed
closest()/farthest()methods.
2.0.2 - 2018-05-29
- Fixed the
weeksproperty for negativePeriodinstances. - Fixed
start_of()methods not setting microseconds to 0. - Fixed errors on some systems when retrieving timezone from clock files.
- Fixed parsing of partial time.
- Fixed parsing not raising an error for week 53 for ordinary years.
- Fixed string formatting not supporting
strftimeformat.
2.0.1 - 2018-05-10
- Fixed behavior of the
YYtoken infrom_format(). - Fixed errors on some systems when retrieving timezone from clock files.
2.0.0 - 2018-05-08
- Added years and months support to durations.
- Added the
test_local_timezone()andset_local_timezone()helpers to ease testing. - Added support of ISO 8601 duration parsing.
- Added support of ISO 8601 interval parsing.
- Added a
local()helper. - Added a
naive()helper and anaive()method. - Added support for POSIX specification to extend timezones DST transitions.
Pendulumclass has been renamed toDateTime.Intervalclass has been renamed toDuration.- Changed and improved the timezone system.
- Removed the
create()helper. - Removed the
utcnow()helper. strictkeyword argument forparsehas been renamed toexact.at()now supports setting partial time.local,utcandis_dstare now methods rather than properties (is_local(),is_utc(),is_dst()).- Changed the
reprof most common objects. - Made the
strictkeyword argument forparsefalse by default, which means it will not fallback on thedateutilparser. - Improved performances of the
precise_diff()helper. - The
alternativeformatter is now the default one. set_to_string_format()/reset_to_string_format()methods have been removed.from_format()now uses the alternative formatter tokens.- Removed
xrange()method of thePeriodclass and maderange()a generator. - New locale system which uses CLDR data for most of the translations.
diff_for_humans()now returnsa few secondswhere appropriate.- Removed
Period.intersect().