Releases: sdispater/pendulum
Releases · sdispater/pendulum
2.0.0
Added
- 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.
Changed
Pendulum
class has been renamed toDateTime
.Interval
class has been renamed toDuration
.- Changed and improved the timezone system.
- Removed the
create()
helper. - Removed the
utcnow()
helper. strict
keyword argument forparse
has been renamed toexact
.at()
now supports setting partial time.local
,utc
andis_dst
are now methods rather than properties (is_local()
,is_utc()
,is_dst()
).- Changed the
repr
of most common objects. - Made the
strict
keyword argument forparse
false by default, which means it will not fallback on thedateutil
parser. - Improved performances of the
precise_diff()
helper. - The
alternative
formatter 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 thePeriod
class and maderange()
a generator. - New locale system which uses CLDR data for most of the translations.
diff_for_humans()
now returnsa few seconds
where appropriate.- Removed
Period.intersect()
.
1.5.1
1.5.0
Added
- Added the
datetime()
helper. - Added the
set()
method to set properties. - Added the
is_utc()
andis_local()
methods.
Deprecated
year_()
,month_()
,day_()
,hour_()
,minute_()
,second_()
,microsecond_()
are now deprecated.timezone_()
andtz_()
are now deprecated.timestamp_()
is now deprecated.with_date_time()
,with_time_from_string()
andwith_timestamp()
are now deprecated.between()
is now deprecated.min_()
,max_()
,minimum()
,maximum()
are now deprecated.is_today()
,is_yesterday()
,is_tomorrow()
andis_same_day()
are now depecreated.is_sunday()
->is_saturday()
are now deprecated.- The
utc
andlocal
properties are now deprecated. Useis_utc()
andis_local()
instead.
1.4.4
1.4.3
1.4.1
1.4.0
1.3.2
1.3.1
1.3.0
Added
- Added support for the alternative formatter's tokens in
from_format()
. - Added a
timezones
module attribute to expose available timezones. - Added the
exact
keyword toparse()
which behaves exactly likestrict
.
Changed
- Dropped support for Python 3.2 and 3.3.
- The
classic
formatter infrom_format()
is now deprecated.
Fixed
- Fixed
th
locale. (Thanks to idxn)