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

Function today

src/pendulum/__init__.py:249–253  ·  view source on GitHub ↗

Create a DateTime instance for today.

(tz: str | Timezone = "local")

Source from the content-addressed store, hash-verified

247
248
249def today(tz: str | Timezone = "local") -> DateTime:
250 """
251 Create a DateTime instance for today.
252 """
253 return now(tz).start_of("day")
254
255
256def tomorrow(tz: str | Timezone = "local") -> DateTime:

Callers 2

tomorrowFunction · 0.70
yesterdayFunction · 0.70

Calls 2

nowFunction · 0.85
start_ofMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…