MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / _makeTimestampAttribute

Method _makeTimestampAttribute

github/GithubObject.py:351–356  ·  view source on GitHub ↗
(value: int)

Source from the content-addressed store, hash-verified

349
350 @staticmethod
351 def _makeTimestampAttribute(value: int) -> Attribute[datetime]:
352 return GithubObject.__makeTransformedAttribute(
353 value,
354 int,
355 lambda t: datetime.fromtimestamp(t, tz=timezone.utc),
356 )
357
358 @staticmethod
359 def _makeDatetimeAttribute(value: str | None) -> Attribute[datetime]:

Callers 6

_useAttributesMethod · 0.80
_useAttributesMethod · 0.80
_useAttributesMethod · 0.80
_useAttributesMethod · 0.80

Calls 1

Tested by

no test coverage detected