MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / interval

Function interval

src/pendulum/__init__.py:329–335  ·  view source on GitHub ↗

Create an Interval instance.

(
    start: DateTime, end: DateTime, absolute: bool = False
)

Source from the content-addressed store, hash-verified

327
328
329def interval(
330 start: DateTime, end: DateTime, absolute: bool = False
331) -> Interval[DateTime]:
332 """
333 Create an Interval instance.
334 """
335 return Interval(start, end, absolute=absolute)
336
337
338if TYPE_CHECKING:

Callers

nothing calls this directly

Calls 1

IntervalClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…