MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / now

Method now

tools/python-3.11.9-amd64/Lib/datetime.py:1798–1801  ·  view source on GitHub ↗

Construct a datetime from time.time() and optional time zone info.

(cls, tz=None)

Source from the content-addressed store, hash-verified

1796
1797 @classmethod
1798 def now(cls, tz=None):
1799 "Construct a datetime from time.time() and optional time zone info."
1800 t = _time.time()
1801 return cls.fromtimestamp(t, tz)
1802
1803 @classmethod
1804 def utcnow(cls):

Callers 9

_print_debugMethod · 0.80
localtimeFunction · 0.80
test_any_and_datetimeMethod · 0.80
getCurrentTimeMethod · 0.80
expire_afterFunction · 0.80
setMethod · 0.80
pip_self_version_checkFunction · 0.80

Calls 2

timeMethod · 0.45
fromtimestampMethod · 0.45