Skip to content

Commit 7315cd7

Browse files
authored
Update adafruit_datetime.py
dosctring
1 parent cdb02bf commit 7315cd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_datetime.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ def toordinal(self) -> int:
15201520
return _ymd2ord(self._year, self._month, self._day)
15211521

15221522
def timestamp(self) -> float:
1523-
"""Return POSIX timestamp as float."""
1523+
"""Return POSIX timestamp as int, similar to the value returned by ``time.time()``."""
15241524
if not self._tzinfo is None:
15251525
return (self - _EPOCH).total_seconds()
15261526
return self._mktime()

0 commit comments

Comments
 (0)