Datetimerange

Latest version: v2.2.0

Safety actively analyzes 613777 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

2.2.0

- 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

2.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**: https://github.com/thombashi/DateTimeRange/compare/v2.1.0...v2.1.1

2.1.0

What's Changed
* Add type annotations by hauntsaninja in https://github.com/thombashi/DateTimeRange/pull/45
* Changes to make `datetime.timedelta` and `dateutil.relativedelta.relativedelta` transparently usable for arguments.


New Contributors
* hauntsaninja made their first contribution in https://github.com/thombashi/DateTimeRange/pull/45

**Full Changelog**: https://github.com/thombashi/DateTimeRange/compare/v2.0.0...v2.1.0

2.0.0

- 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**: https://github.com/thombashi/DateTimeRange/compare/v1.2.0...v2.0.0

1.2.0

- Add `DateTimeRange.from_range_text` class method: 38 (Thanks to noamsgl)

1.1.0

- 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

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.