MCPcopy 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_timestampFunction · 0.45
test_fromtimestampFunction · 0.45
test_fromtimestampFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_fromtimestampFunction · 0.36
test_fromtimestampFunction · 0.36