File tree 1 file changed +2
-10
lines changed 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -1520,18 +1520,10 @@ def toordinal(self) -> int:
1520
1520
return _ymd2ord (self ._year , self ._month , self ._day )
1521
1521
1522
1522
def timestamp (self ) -> float :
1523
- """Return POSIX timestamp as float.
1524
-
1525
- Note that Floats on most boards are encoded in 30 bits
1526
- internally, with effectively 22 bits of precision. As a result,
1527
- for modern dates this value can be off by several minutes.
1528
- As a workaround you can access the function ``_mktime()``
1529
- to get an int version of the timestamp.
1530
- """
1523
+ """Return POSIX timestamp as float."""
1531
1524
if not self ._tzinfo is None :
1532
1525
return (self - _EPOCH ).total_seconds ()
1533
- s = self ._mktime ()
1534
- return s + self .microsecond / 1e6
1526
+ return self ._mktime ()
1535
1527
1536
1528
def weekday (self ) -> int :
1537
1529
"""Return the day of the week as an integer, where Monday is 0 and Sunday is 6."""
You can’t perform that action at this time.
0 commit comments