Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
main
Function · 0.80
test_roundtrip
Method · 0.80
test_today
Method · 0.80
test_fromutc
Method · 0.80
test_date_datetime_comparison
Method · 0.80
test_extra_attributes
Method · 0.80
Calls
2
time
Method · 0.45
fromtimestamp
Method · 0.45
Tested by
5
test_roundtrip
Method · 0.64
test_today
Method · 0.64
test_fromutc
Method · 0.64
test_date_datetime_comparison
Method · 0.64
test_extra_attributes
Method · 0.64