Skip to content

Releases: thombashi/DateTimeRange

v2.3.0

30 Apr 13:13
v2.3.0
Compare
Choose a tag to compare

New Features

  • Add is_time_inversion method to DateTimeRange class
  • Add allow_timezone_mismatch argument to validate_time_inversion method: #49 (Thanks to @darkweaver87)

Bug Fixes

  • Fix the range method for when the timezone is mismatched between start_datetime and end_datetime: #49 (Thanks to @darkweaver87)

Full Changelog: v2.2.1...v2.3.0

v2.2.1

07 Apr 14:57
v2.2.1
Compare
Choose a tag to compare

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 the intersection_threshold is not None: #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

Full Changelog: v2.2.0...v2.2.1

v2.2.0

03 Oct 16:02
v2.2.0
Compare
Choose a tag to compare
  • Add timezone as an optional argument to set_time_range method, from_range_text method and the DateTimeRange class constructor
  • Add timezone property to DateTimeRange class
  • Add support for Python 3.12
  • Change start_time_format and end_time_format of the DateTimeRange class constructor to optional arguments
    • Default format value would not be changed
  • Fix type annotations of set_start_datetime and set_end_datetime methods
  • Bump minimum typepy version to 1.3.2

v2.1.1

01 Oct 12:21
v2.1.1
Compare
Choose a tag to compare
  • 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

19 Feb 05:03
v2.1.0
Compare
Choose a tag to compare

What's Changed

  • Add type annotations by @hauntsaninja in #45
  • Changes to make datetime.timedelta and dateutil.relativedelta.relativedelta transparently usable for arguments.

New Contributors

Full Changelog: v2.0.0...v2.1.0

v2.0.0

11 Feb 04:24
v2.0.0
Compare
Choose a tag to compare
  • Add intersection_threshold argument to intersection/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

v1.2.0

10 Jul 15:05
v1.2.0
Compare
Choose a tag to compare
  • Add DateTimeRange.from_range_text class method: #38 (Thanks to @noamsgl)

v1.1.0

09 Jun 12:06
v1.1.0
Compare
Choose a tag to compare
  • Add subtract method to DateTimeRange class: #36 (Thanks to @bramski)
  • Add split method to DateTimeRange class
  • Add support for Python 3.10
  • Drop support for Python 3.5

v0.5.0

31 Oct 15:05
Compare
Choose a tag to compare
  • Change to return a new instance instead of changing the instance value itself when using intersection/encompass methods #31 (Thanks to @camelia-c)

v0.4.0

30 Oct 13:21
Compare
Choose a tag to compare
  • Add support for datetime.date class