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

Function now

src/pendulum/__init__.py:242–246  ·  view source on GitHub ↗

Get a DateTime instance for the current date and time.

(tz: str | Timezone | None = None)

Source from the content-addressed store, hash-verified

240
241
242def now(tz: str | Timezone | None = None) -> DateTime:
243 """
244 Get a DateTime instance for the current date and time.
245 """
246 return DateTime.now(tz)
247
248
249def today(tz: str | Timezone = "local") -> DateTime:

Callers 2

todayFunction · 0.85
from_formatFunction · 0.85

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected