Releases: ariebovenberg/whenever
Releases · ariebovenberg/whenever
0.5.2
0.5.1
0.5.0
Breaking changes
- Fix handling of
-0000
offset in RFC2822 format, which was not according to the standard.NaiveDateTime
can now no longer be created from this format. DateDelta
canonical format now usesP
prefix.
Improved
- Add explicit ISO8601 formatting/parsing methods to datetimes, date, time, and deltas.
- Add missing
Date.from_canonical_format
method. - Separate docs for deltas and datetimes.
NaiveDateTime.assume_offset
now also accepts integers as hour offsets.
0.4.0
A big release with the main feature being the addition of date/time deltas.
I've also tried to bundle as many small breaking changes as possible into
this release, to avoid having to do them in the future.
For the rationale behind each breaking change, see the full changelog
Breaking changes
LocalDateTime
renamed toLocalSystemDateTime
.LocalSystemDateTime
no longer adjusts automatically to changes in the system timezone. Now,LocalSystemDateTime
reflects the system timezone at the moment of instantiation. It can be updated explicitly.- The
disambiguate=
argument now also determines how non-existent times are handled. from_naive()
removed in favor of methods onNaiveDateTime
. For example,UTCDateTime.from_naive(n)
becomesn.assume_utc()
.- Renamed
ZonedDateTime.disambiguated()
to.is_ambiguous()
. - Replaced
.py
property with.py_datetime()
method. - Removed properties that simply delegated to the underlying
datetime
object:tzinfo
,weekday
, andfold
.date
andtime
now returnwhenever.Date
andwhenever.Time
objects. - Renamed
.canonical_str()
to.canonical_format()
. - Renamed
DoesntExistInZone
toSkippedTime
,Ambiguous
toAmbiguousTime
. - Renamed
min
andmax
toMIN
andMAX
.
Improved
- Added a
disambiguation="compatible"
option that matches the behavior of other languages and the RFC5545 standard. - Shortened the
repr()
of all types, use space separator instead ofT
. - Added
sep="T" or " "
option tocanonical_format()
OffsetDateTime
constructor and methods creating offset datetimes now accept integers as hour offsets.- Added
Date
andTime
classes for working with dates and times separately.
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
Breaking changes
- 🥒 Change pickle format so that backwards-compatible unpickling is possible in the future.
Added
- 🔨 Added
strptime()
toUTCDateTime
,OffsetDateTime
andNaiveDateTime
. - 📋 Added
rfc2822()
/from_rfc2822()
toUTCDateTime
,OffsetDateTime
andNaiveDateTime
. - ⚙️ Added
rfc3339()
/from_rfc3339()
toUTCDateTime
andOffsetDateTime
0.2.1
- added
days()
timedelta alias - Improvements to README, other docs