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

Method utcnow

src/pendulum/datetime.py:184–188  ·  view source on GitHub ↗

Get a DateTime instance for the current date and time in UTC.

(cls)

Source from the content-addressed store, hash-verified

182
183 @classmethod
184 def utcnow(cls) -> Self:
185 """
186 Get a DateTime instance for the current date and time in UTC.
187 """
188 return cls.now(UTC)
189
190 @classmethod
191 def today(cls) -> Self:

Callers 2

test_setting_timezoneFunction · 0.80

Calls 1

nowMethod · 0.80

Tested by 2

test_setting_timezoneFunction · 0.64