From a415e506ee3787df49538647b6e877c632873e44 Mon Sep 17 00:00:00 2001 From: Aiudadadadf Date: Mon, 23 Feb 2026 18:17:16 +0100 Subject: [PATCH 1/2] docs: add microsecond to span() and interval() supported frames, fix interval example typo --- arrow/arrow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arrow/arrow.py b/arrow/arrow.py index 3837ae362..9448848e7 100644 --- a/arrow/arrow.py +++ b/arrow/arrow.py @@ -424,7 +424,7 @@ def interval(cls, frame, start, end, interval=1, tz=None, bounds="[)"): the start, '[' includes the start, ')' excludes the end, and ']' includes the end. If the bounds are not specified, the default bound '[)' is used. - Supported frame values: year, quarter, month, week, day, hour, minute, second + Supported frame values: year, quarter, month, week, day, hour, minute, second, microsecond. Recognized datetime expressions: @@ -447,7 +447,7 @@ def interval(cls, frame, start, end, interval=1, tz=None, bounds="[)"): ... (, ) (, ) - (, ) + (, ) """ if interval < 1: raise ValueError("interval has to be a positive integer") @@ -750,7 +750,7 @@ def span(self, frame, count=1, bounds="[)"): the start, '[' includes the start, ')' excludes the end, and ']' includes the end. If the bounds are not specified, the default bound '[)' is used. - Supported frame values: year, quarter, month, week, day, hour, minute, second. + Supported frame values: year, quarter, month, week, day, hour, minute, second, microsecond. Usage:: From 4d1e400b13c4e6b3ddeb005cf7ccdbb55e299d3a Mon Sep 17 00:00:00 2001 From: Aiudadadadf Date: Mon, 23 Feb 2026 18:20:07 +0100 Subject: [PATCH 2/2] docs: add microsecond to range() and span_range() supported frames too --- arrow/arrow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arrow/arrow.py b/arrow/arrow.py index 9448848e7..42e1dff52 100644 --- a/arrow/arrow.py +++ b/arrow/arrow.py @@ -302,7 +302,7 @@ def range(cls, frame, start, end=None, tz=None, limit=None): iterating. As such, either call with naive objects and ``tz``, or aware objects from the same timezone and no ``tz``. - Supported frame values: year, quarter, month, week, day, hour, minute, second. + Supported frame values: year, quarter, month, week, day, hour, minute, second, microsecond. Recognized datetime expressions: @@ -378,7 +378,7 @@ def span_range(cls, frame, start, end, tz=None, limit=None, bounds="[)"): iterating. As such, either call with naive objects and ``tz``, or aware objects from the same timezone and no ``tz``. - Supported frame values: year, quarter, month, week, day, hour, minute, second. + Supported frame values: year, quarter, month, week, day, hour, minute, second, microsecond. Recognized datetime expressions: