Releases: thombashi/DateTimeRange
Releases · thombashi/DateTimeRange
v2.3.0
New Features
- Add
is_time_inversion
method toDateTimeRange
class - Add
allow_timezone_mismatch
argument tovalidate_time_inversion
method: #49 (Thanks to @darkweaver87)
Bug Fixes
- Fix the
range
method for when the timezone is mismatched betweenstart_datetime
andend_datetime
: #49 (Thanks to @darkweaver87)
Full Changelog: v2.2.1...v2.3.0
v2.2.1
What's Changed
- Bump actions/setup-python from 4 to 5 by @dependabot in #47
- Fix an error that
DateTimeRange.intersection
method failed when the ranges are not overlapped and theintersection_threshold
is notNone
: #48 (Thanks to @wernersa) - Keep the timezone when perform
__iadd__
or__isub__
operations - Add a build and publish workflow
- Add Sigstore signatures to release assets
New Contributors
- @dependabot made their first contribution in #47
Full Changelog: v2.2.0...v2.2.1
v2.2.0
- Add
timezone
as an optional argument toset_time_range
method,from_range_text
method and theDateTimeRange
class constructor - Add
timezone
property toDateTimeRange
class - Add support for Python 3.12
- Change
start_time_format
andend_time_format
of theDateTimeRange
class constructor to optional arguments- Default format value would not be changed
- Fix type annotations of
set_start_datetime
andset_end_datetime
methods - Bump minimum
typepy
version to 1.3.2
v2.1.1
- Add
__all__
to__init__.py
- Add
docs
extras - Add
zip_safe=False
- Add a classifier
- Update
[build-system]
- Modify to use
pypa/build
for package build
Full Changelog: v2.1.0...v2.1.1
v2.1.0
What's Changed
- Add type annotations by @hauntsaninja in #45
- Changes to make
datetime.timedelta
anddateutil.relativedelta.relativedelta
transparently usable for arguments.
New Contributors
- @hauntsaninja made their first contribution in #45
Full Changelog: v2.0.0...v2.1.0
v2.0.0
- Add
intersection_threshold
argument tointersection
/is_intersection
methods: #43 (Thanks to @usman5251) - Modify to accept regular expression for separator argument of
from_range_text
method: #41 (Thanks to @pantierra) - Fix the behavior of range when traversing from end to start: #44 (Thanks to @4l1fe)
- Drop support for Python 3.6
- Add support for Python 3.11
Full Changelog: v1.2.0...v2.0.0