|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 0.11.0 (unreleased) |
| 4 | + |
| 5 | +**Breaking changes** |
| 6 | + |
| 7 | +- Removed the ``DateDelta`` and ``DateTimeDelta`` classes, |
| 8 | + which were deprecated in 0.10.0. |
| 9 | + Use ``ItemizedDateDelta`` and ``ItemizedDelta`` instead. |
| 10 | +- Removed the ``years()``, ``months()``, ``weeks()``, ``days()`` helper |
| 11 | + functions, which were deprecated in 0.10.0. |
| 12 | + Use ``ItemizedDateDelta(years=...)``, etc. instead, |
| 13 | + or use keyword arguments directly (e.g. ``dt.add(years=1, months=2)``). |
| 14 | +- Removed the ``Date.__add__``/``__sub__`` operators with ``DateDelta`` |
| 15 | + and ``Date.__sub__`` between two dates (returning ``DateDelta``), |
| 16 | + which were deprecated in 0.10.0. |
| 17 | + Use ``add()``, ``subtract()``, ``since()``, or ``until()`` instead. |
| 18 | +- Removed the ``ignore_dst`` parameter from ``OffsetDateTime`` and |
| 19 | + ``PlainDateTime`` methods, which was deprecated in 0.10.0. |
| 20 | + Use ``stale_offset_ok=True`` (``OffsetDateTime``) or |
| 21 | + ``naive_arithmetic_ok=True`` (``PlainDateTime``) instead. |
| 22 | +- Removed the ``py_date()``, ``py_time()``, ``py_datetime()``, and |
| 23 | + ``py_timedelta()`` methods, which were deprecated in 0.10.0. |
| 24 | + Use ``to_stdlib()`` instead. |
| 25 | +- Removed the ``from_py_date()``, ``from_py_time()``, |
| 26 | + ``from_py_datetime()``, and ``from_py_timedelta()`` methods, |
| 27 | + which were deprecated in 0.10.0. |
| 28 | + Use the constructor directly (e.g. ``Date(datetime.date(...))``). |
| 29 | +- Removed ``TimeDelta.in_hours()``, ``.in_minutes()``, ``.in_seconds()``, |
| 30 | + ``.in_milliseconds()``, ``.in_microseconds()``, ``.in_nanoseconds()``, |
| 31 | + ``.in_days_of_24h()``, and ``.in_hrs_mins_secs_nanos()``, |
| 32 | + which were deprecated in 0.10.0. |
| 33 | + Use ``total()`` or ``in_units()`` instead. |
| 34 | +- Removed ``Date.days_since()`` and ``Date.days_until()``, |
| 35 | + which were deprecated in 0.10.0. |
| 36 | + Use ``since()`` and ``until()`` with ``total='days'`` instead. |
| 37 | +- Removed ``parse_strptime()`` methods on ``OffsetDateTime`` and |
| 38 | + ``PlainDateTime``, which were deprecated in 0.10.0. |
| 39 | + Use ``parse()`` instead. |
| 40 | +- Removed ``ZonedDateTime.start_of_day()``, |
| 41 | + which was deprecated in 0.10.0. |
| 42 | + Use ``start_of("day")`` instead. |
| 43 | +- Removed ``WheneverDeprecationWarning`` and ``ImplicitlyIgnoringDST`` |
| 44 | + exception classes, which are no longer needed. |
| 45 | + |
3 | 46 |
|
4 | 47 | ## 0.10.1 (2026-05-??) |
5 | 48 |
|
|
0 commit comments