MCPcopy Index your code
hub / github.com/RustPython/RustPython / today

Method today

Lib/_pydatetime.py:1024–1027  ·  view source on GitHub ↗

Construct a date from time.time().

(cls)

Source from the content-addressed store, hash-verified

1022
1023 @classmethod
1024 def today(cls):
1025 "Construct a date from time.time()."
1026 t = _time.time()
1027 return cls.fromtimestamp(t)
1028
1029 @classmethod
1030 def fromordinal(cls, n):

Callers 6

mainFunction · 0.80
test_roundtripMethod · 0.80
test_todayMethod · 0.80
test_fromutcMethod · 0.80
test_extra_attributesMethod · 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