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

Method utcnow

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

Construct a UTC datetime from time.time().

(cls)

Source from the content-addressed store, hash-verified

1802
1803 @classmethod
1804 def utcnow(cls):
1805 "Construct a UTC datetime from time.time()."
1806 t = _time.time()
1807 return cls.utcfromtimestamp(t)
1808
1809 @classmethod
1810 def combine(cls, date, time, tzinfo=True):

Callers 2

time2isozFunction · 0.80
time2netscapeFunction · 0.80

Calls 2

utcfromtimestampMethod · 0.80
timeMethod · 0.45

Tested by

no test coverage detected