We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdb02bf commit 7315cd7Copy full SHA for 7315cd7
adafruit_datetime.py
@@ -1520,7 +1520,7 @@ def toordinal(self) -> int:
1520
return _ymd2ord(self._year, self._month, self._day)
1521
1522
def timestamp(self) -> float:
1523
- """Return POSIX timestamp as float."""
+ """Return POSIX timestamp as int, similar to the value returned by ``time.time()``."""
1524
if not self._tzinfo is None:
1525
return (self - _EPOCH).total_seconds()
1526
return self._mktime()
0 commit comments