diff options
| author | varunkasyap <varunkasyap@hotmail.com> | 2025-11-22 17:54:05 +0530 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2025-12-17 10:19:05 -0500 |
| commit | 0d8548e5831bc610102d5e4b8a2366f26818a28a (patch) | |
| tree | 66afb67472c108cc8301716f2b1bd7037bc63af5 /docs/ref | |
| parent | 6cc1231285a20b11058143f8cb0a6b4b3999b23a (diff) | |
Fixed #36747 -- Parsed weeks from ISO 8601 format in parse_duration().
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/utils.txt | 9 |
1 files changed, 9 insertions, 0 deletions
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`` =========================== |
