From 0d8548e5831bc610102d5e4b8a2366f26818a28a Mon Sep 17 00:00:00 2001 From: varunkasyap Date: Sat, 22 Nov 2025 17:54:05 +0530 Subject: Fixed #36747 -- Parsed weeks from ISO 8601 format in parse_duration(). --- docs/ref/utils.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 69af23ad83..1c42784d13 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -147,6 +147,15 @@ The functions defined in this module share the following properties: ``P4DT1H15M20S`` which is equivalent to ``4 1:15:20``) or PostgreSQL's day-time interval format (e.g. ``3 days 04:05:06``). + .. admonition:: Years and months not supported + + ISO 8601 years (``Y``) and months (``M``) are unsupported as they + cannot be represented by :class:`~datetime.timedelta`. + + .. versionchanged:: 6.1 + + ISO 8601 duration parsing now supports weeks (``PnW``). + ``django.utils.decorators`` =========================== -- cgit v1.3