MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / fromtimestamp

Method fromtimestamp

src/pendulum/datetime.py:1253–1256  ·  view source on GitHub ↗
(cls, t: float, tz: datetime.tzinfo | None = None)

Source from the content-addressed store, hash-verified

1251
1252 @classmethod
1253 def fromtimestamp(cls, t: float, tz: datetime.tzinfo | None = None) -> Self:
1254 tzinfo = pendulum._safe_timezone(tz)
1255
1256 return cls.instance(datetime.datetime.fromtimestamp(t, tz=tzinfo), tz=tzinfo)
1257
1258 @classmethod
1259 def utcfromtimestamp(cls, t: float) -> Self:

Callers

nothing calls this directly

Calls 1

instanceMethod · 0.45

Tested by

no test coverage detected