MCPcopy Index your code
hub / github.com/python/cpython / today

Method today

Lib/_pydatetime.py:1033–1036  ·  view source on GitHub ↗

Construct a date from time.time().

(cls)

Source from the content-addressed store, hash-verified

1031
1032 @classmethod
1033 def today(cls):
1034 "Construct a date from time.time()."
1035 t = _time.time()
1036 return cls.fromtimestamp(t)
1037
1038 @classmethod
1039 def fromordinal(cls, n):

Callers 8

mainFunction · 0.80
test_roundtripMethod · 0.80
test_todayMethod · 0.80
test_fromutcMethod · 0.80
test_extra_attributesMethod · 0.80
tickFunction · 0.80
output_markdownFunction · 0.80

Calls 2

timeMethod · 0.45
fromtimestampMethod · 0.45

Tested by 5

test_roundtripMethod · 0.64
test_todayMethod · 0.64
test_fromutcMethod · 0.64
test_extra_attributesMethod · 0.64