Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/python-pendulum/pendulum
/ fromtimestamp
Method
fromtimestamp
src/pendulum/date.py:736–739 ·
view source on GitHub ↗
(cls, t: float)
Source
from the content-addressed store, hash-verified
734
735
@classmethod
736
def
fromtimestamp(cls, t: float) -> Self:
737
dt = super().fromtimestamp(t)
738
739
return
cls(dt.year, dt.month, dt.day)
740
741
@classmethod
742
def
fromordinal(cls, n: int) -> Self:
Callers
3
from_timestamp
Function · 0.45
test_fromtimestamp
Function · 0.45
test_fromtimestamp
Function · 0.45
Calls
no outgoing calls
Tested by
2
test_fromtimestamp
Function · 0.36
test_fromtimestamp
Function · 0.36