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

Function yesterday

src/pendulum/__init__.py:263–267  ·  view source on GitHub ↗

Create a DateTime instance for yesterday.

(tz: str | Timezone = "local")

Source from the content-addressed store, hash-verified

261
262
263def yesterday(tz: str | Timezone = "local") -> DateTime:
264 """
265 Create a DateTime instance for yesterday.
266 """
267 return today(tz).subtract(days=1)
268
269
270def from_format(

Callers

nothing calls this directly

Calls 2

todayFunction · 0.70
subtractMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…